WC_Product::get_global_unique_id
Get Unique ID.
Method of the class: WC_Product{}
No Hooks.
Returns
String.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_global_unique_id( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
| Since 9.1.0 | Introduced. |
WC_Product::get_global_unique_id() WC Product::get global unique id code WC 10.3.6
public function get_global_unique_id( $context = 'view' ) {
return $this->get_prop( 'global_unique_id', $context );
}