src/Modules/Uninstall_feedback.php
public function can_load( $product ) {
		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( $product->is_theme() && ( false !== get_transient( 'ti_sdk_pause_' . $product->get_key(), false ) ) ) {
			return false;
		}

		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
			return true;
		}
		global $pagenow;

		if ( ! isset( $pagenow ) || empty( $pagenow ) ) {
			return false;
		}

		if ( $product->is_plugin() && 'plugins.php' !== $pagenow ) {
			return false;

		}
		if ( $product->is_theme() && 'theme-install.php' !== $pagenow ) {
			return false;
		}

		return true;
	}
public function can_load( $product ) {
		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( $product->is_theme() && ( false !== get_transient( 'ti_sdk_pause_' . $product->get_key(), false ) ) ) {
			return false;
		}

		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
			return true;
		}
		global $pagenow;

		if ( ! isset( $pagenow ) || empty( $pagenow ) ) {
			return false;
		}

		if ( $product->is_plugin() && 'plugins.php' !== $pagenow ) {
			return false;

		}
		if ( $product->is_theme() && 'theme-install.php' !== $pagenow ) {
			return false;
		}

		return true;
	}
public function can_load ( $ product ) { if ( $ this -> is_from_partner ( $ product ) ) { return false ; } if ( $ product -> is_theme ( ) && ( false !== get_transient ( 'ti_sdk_pause_' . $ product -> get_key ( ) , false ) ) ) { return false ; } if ( defined ( 'DOING_AJAX' ) && DOING_AJAX ) { return true ; } global $ pagenow ; if ( ! isset ( $ pagenow ) || empty ( $ pagenow ) ) { return false ; } if ( $ product -> is_plugin ( ) && 'plugins.php' !== $ pagenow ) { return false ; } if ( $ product -> is_theme ( ) && 'theme-install.php' !== $ pagenow ) { return false ; } return true ; }
Should we load this object?.

@param Product $product Product object.

@return bool Should we load the module?
Should we load this object? .