Automattic\WooCommerce\Internal\StockNotifications

Notification::get_user_idpublicWC 1.0

Get the user ID.

Method of the class: Notification{}

No Hooks.

Returns

Int.

Usage

$Notification = new Notification();
$Notification->get_user_id( $context );
$context(string)
Context.
Default: 'view'

Notification::get_user_id() code WC 10.3.6

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