WC_Product::get_global_unique_id()
Get Unique ID.
Method of the class: WC_Product{}
No Hooks.
Return
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 9.2.3
public function get_global_unique_id( $context = 'view' ) { return $this->get_prop( 'global_unique_id', $context ); }