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