WC_Brands_Brand_Settings_Manager
in package
Brand settings manager.
This class is responsible for setting and getting brand settings for a coupon.
Important: For internal use only by the Automattic\WooCommerce\Internal\Brands package.
Tags
Table of Contents
- $brand_settings : array<string|int, mixed>
- Brand settings for a coupon.
- get_brand_settings_on_coupon() : array<string|int, mixed>
- Get brand settings for a coupon.
- set_brand_settings_on_coupon() : mixed
- Set brand settings for a coupon.
Properties
$brand_settings
Brand settings for a coupon.
private
static array<string|int, mixed>
$brand_settings
= array()
Methods
get_brand_settings_on_coupon()
Get brand settings for a coupon.
public
static get_brand_settings_on_coupon(WC_Coupon $coupon) : array<string|int, mixed>
Parameters
- $coupon : WC_Coupon
-
Coupon object.
Return values
array<string|int, mixed> — Brand settings (included and excluded brands).set_brand_settings_on_coupon()
Set brand settings for a coupon.
public
static set_brand_settings_on_coupon(WC_Coupon $coupon) : mixed
Parameters
- $coupon : WC_Coupon
-
Coupon object.