WC_Brands_Brand_Settings_Manager::get_brand_settings_on_coupon
Get brand settings for a coupon.
Method of the class: WC_Brands_Brand_Settings_Manager{}
No Hooks.
Returns
Array
. Brand settings (included and excluded brands).
Usage
$result = WC_Brands_Brand_Settings_Manager::get_brand_settings_on_coupon( $coupon );
- $coupon(WC_Coupon) (required)
- Coupon object.
WC_Brands_Brand_Settings_Manager::get_brand_settings_on_coupon() WC Brands Brand Settings Manager::get brand settings on coupon code WC 9.9.3
public static function get_brand_settings_on_coupon( $coupon ) { $coupon_id = $coupon->get_id(); if ( isset( self::$brand_settings[ $coupon_id ] ) ) { return self::$brand_settings[ $coupon_id ]; } // Default return value if no settings are found. return array( 'included_brands' => array(), 'excluded_brands' => array(), ); }