Skip to content

Commit

Permalink
preserve return
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Dec 20, 2024
1 parent 68a51ed commit 65a87ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ public function __wakeup() {
*
* @access public
*/
public static function sdk_hide_promo_notice() {
public static function sdk_hide_promo_notice( $should_show ) {
if ( self::$_instance->admin->settings->is_connected() ) {
$service_data = self::$_instance->admin->settings->get( 'service_data' );
if ( isset( $service_data['plan'] ) && 'free' !== $service_data['plan'] ) {
return true;
}
}
return false;
return $should_show;
}
}

0 comments on commit 65a87ae

Please sign in to comment.