WC_Product::get_brand_ids
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() WC Product::get brand ids code WC 10.3.6
public function get_brand_ids( $context = 'view' ) {
return $this->get_prop( 'brand_ids', $context );
}