Automattic\WooCommerce\Internal\StockNotifications
Notification::get_product_id
Get the product ID.
Method of the class: Notification{}
No Hooks.
Returns
Int.
Usage
$Notification = new Notification(); $Notification->get_product_id( $context );
- $context(string)
- Context.
Default: 'view'
Notification::get_product_id() Notification::get product id code WC 10.3.6
public function get_product_id( $context = 'view' ) {
return $this->get_prop( 'product_id', $context );
}