Automattic\WooCommerce\Internal\StockNotifications

Notification::set_user_id │ public │ WC 1.0

Set the user ID.

Метод класса: Notification{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Notification = new Notification();
$Notification->set_user_id( $user_id );
$user_id(int) (обязательный)
User ID.

Код Notification::set_user_id() WC 11.3.0

public function set_user_id( int $user_id ) {
	$this->set_prop( 'user_id', $user_id );
}