Automattic\WooCommerce\Internal\StockNotifications

Notification::get_product_idpublicWC 1.0

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() code WC 10.3.6

public function get_product_id( $context = 'view' ) {
	return $this->get_prop( 'product_id', $context );
}