WC_Product::get_brand_idspublicWC 10.3.0

Get brand ids.

Method of the class: WC_Product{}

No Hooks.

Returns

Array.

Usage

$WC_Product = new WC_Product();
$WC_Product->get_brand_ids( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 10.3.0 Introduced.

WC_Product::get_brand_ids() code WC 10.3.6

public function get_brand_ids( $context = 'view' ) {
	return $this->get_prop( 'brand_ids', $context );
}