src/Common/Abstract_module.php
public function is_from_partner( $product ) {

		foreach ( Module_Factory::$domains as $partner_domain ) {
			if ( strpos( $product->get_store_url(), $partner_domain ) !== false ) {
				return true;
			}
		}

		return array_key_exists( $product->get_slug(), Module_Factory::$slugs );
	}
public function is_from_partner( $product ) {

		foreach ( Module_Factory::$domains as $partner_domain ) {
			if ( strpos( $product->get_store_url(), $partner_domain ) !== false ) {
				return true;
			}
		}

		return array_key_exists( $product->get_slug(), Module_Factory::$slugs );
	}
public function is_from_partner ( $ product ) { foreach ( Module_Factory :: $ domains as $ partner_domain ) { if ( strpos ( $ product -> get_store_url ( ) , $ partner_domain ) !== false ) { return true ; } } return array_key_exists ( $ product -> get_slug ( ) , Module_Factory :: $ slugs ) ; }
Check if the product is from partner.

@param Product $product Product data.

@return bool Is product from partner.
Check if the product is from partner .