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 11.2.2
public function get_product_id( $context = 'view' ) {
return $this->get_prop( 'product_id', $context );
}