Yoast_Notification::get_user_id()publicYoast 1.0

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 22.3

public function get_user_id() {
	return ( $this->options['user_id'] ?? get_current_user_id() );
}