WooCommerce Code Reference

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
version
9.4.0

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

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).