Automattic\WooCommerce\Internal\StockNotifications
Notification::get_user_id
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() Notification::get user id code WC 10.3.6
public function get_user_id( $context = 'view' ) {
return $this->get_prop( 'user_id', $context );
}