Automattic\WooCommerce\Internal\PushNotifications\Entities

PushToken::get_user_idpublicWC 10.4.0

Gets the user ID.

Method of the class: PushToken{}

No Hooks.

Returns

Int|null.

Usage

$PushToken = new PushToken();
$PushToken->get_user_id(): ?int;

Changelog

Since 10.4.0 Introduced.

PushToken::get_user_id() code WC 10.5.0

public function get_user_id(): ?int {
	return $this->user_id;
}