Automattic\WooCommerce\Internal\PushNotifications\Entities
PushToken::has_required_parameters
Determines whether all the required non-ID parameters are filled.
Метод класса: PushToken{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->has_required_parameters(): bool;
Список изменений
| С версии 10.4.0 | Введена. |
Код PushToken::has_required_parameters() PushToken::has required parameters WC 11.3.0
private function has_required_parameters(): bool {
return $this->get_user_id()
&& $this->get_token()
&& $this->get_platform()
&& $this->get_origin()
&& $this->get_device_locale()
&& (
$this->get_device_uuid()
|| $this->get_platform() === self::PLATFORM_BROWSER
);
}