src/Modules/Notification.php
public function can_load( $product ) {

		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( ! current_user_can( 'manage_options' ) ) {
			return false;
		}
		if ( ( time() - $product->get_install_time() ) < ( self::MIN_INSTALL_TIME * HOUR_IN_SECONDS ) ) {
			return false;
		}

		return true;
	}
public function can_load( $product ) {

		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( ! current_user_can( 'manage_options' ) ) {
			return false;
		}
		if ( ( time() - $product->get_install_time() ) < ( self::MIN_INSTALL_TIME * HOUR_IN_SECONDS ) ) {
			return false;
		}

		return true;
	}
public function can_load ( $ product ) { if ( $ this -> is_from_partner ( $ product ) ) { return false ; } if ( ! current_user_can ( 'manage_options' ) ) { return false ; } if ( ( time ( ) - $ product -> get_install_time ( ) ) < ( self :: MIN_INSTALL_TIME * HOUR_IN_SECONDS ) ) { return false ; } return true ; }
Check if we should load the notification module.

@param Product $product Product to check.

@return bool Should we load this?
Check if we should load the notification module .