Automattic\WooCommerce\Internal\PushNotifications\Entities
PushToken::can_be_created
Determines whether this token can be created.
Method of the class: PushToken{}
No Hooks.
Returns
true|false.
Usage
$PushToken = new PushToken(); $PushToken->can_be_created(): bool;
Changelog
| Since 10.4.0 | Introduced. |
PushToken::can_be_created() PushToken::can be created code WC 10.8.1
public function can_be_created(): bool {
return ! $this->get_id() && $this->has_required_parameters();
}