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 19.7.1

public function get_user_id() {
	if ( $this->get_user() !== null ) {
		return $this->get_user()->ID;
	return get_current_user_id();