Yoast_Notification::get_user_id()
Retrieve the id of the user to show the notification for.
Returns the id of the current user if not user has been sent.
Метод класса: Yoast_Notification{}
Хуков нет.
Возвращает
int
. The user id
Использование
$Yoast_Notification = new Yoast_Notification(); $Yoast_Notification->get_user_id();
Код Yoast_Notification::get_user_id() Yoast Notification::get user id Yoast 24.1
public function get_user_id() { return ( $this->options['user_id'] ?? get_current_user_id() ); }