src/Modules/Notification.php
public function load( $product ) {
		$this->product = $product;

		$notifications       = apply_filters( 'themeisle_sdk_registered_notifications', [] );
		$notifications       = array_filter(
			$notifications,
			function ( $value ) {
				if ( ! isset( $value['id'] ) ) {
					return false;
				}
				if ( get_option( $value['id'], '' ) !== '' ) {
					return false;
				}

				return apply_filters( $value['id'] . '_should_show', true );
			}
		);
		self::$notifications = $notifications;
		add_action( 'admin_notices', array( __CLASS__, 'show_notification' ) );
		add_action( 'wp_ajax_themeisle_sdk_dismiss_notice', array( __CLASS__, 'dismiss' ) );
		add_action( 'admin_head', array( __CLASS__, 'setup_notifications' ) );

		return $this;
	}
public function load( $product ) {
		$this->product = $product;

		$notifications       = apply_filters( 'themeisle_sdk_registered_notifications', [] );
		$notifications       = array_filter(
			$notifications,
			function ( $value ) {
				if ( ! isset( $value['id'] ) ) {
					return false;
				}
				if ( get_option( $value['id'], '' ) !== '' ) {
					return false;
				}

				return apply_filters( $value['id'] . '_should_show', true );
			}
		);
		self::$notifications = $notifications;
		add_action( 'admin_notices', array( __CLASS__, 'show_notification' ) );
		add_action( 'wp_ajax_themeisle_sdk_dismiss_notice', array( __CLASS__, 'dismiss' ) );
		add_action( 'admin_head', array( __CLASS__, 'setup_notifications' ) );

		return $this;
	}
public function load ( $ product ) { $ this -> product = $ product ; $ notifications = apply_filters ( 'themeisle_sdk_registered_notifications' , [ ] ) ; $ notifications = array_filter ( $ notifications , function ( $ value ) { if ( ! isset ( $ value [ 'id' ] ) ) { return false ; } if ( get_option ( $ value [ 'id' ] , '' ) !== '' ) { return false ; } return apply_filters ( $ value [ 'id' ] . '_should_show' , true ) ; } ) ; self :: $ notifications = $ notifications ; add_action ( 'admin_notices' , array ( __CLASS__ , 'show_notification' ) ) ; add_action ( 'wp_ajax_themeisle_sdk_dismiss_notice' , array ( __CLASS__ , 'dismiss' ) ) ; add_action ( 'admin_head' , array ( __CLASS__ , 'setup_notifications' ) ) ; return $ this ; }
Load the module logic.

@param Product $product Product to load the module for.

@return Notification Module instance.
Load the module logic .