Automattic\WooCommerce\Internal\PushNotifications\Controllers

PushTokenRestController::get_rest_api_namespace │ protected │ WC 10.6.0

Class identifier used by woocommerce_rest_api_get_rest_namespaces.

Intentionally distinct from the URL $route_namespace — the filter keys one class per value here, so sharing the value with sibling controllers in the same module would overwrite them.

Метод класса: PushTokenRestController{}

Хуков нет.

Возвращает

string.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_rest_api_namespace(): string;

Список изменений

С версии 10.6.0 Введена.

Код PushTokenRestController::get_rest_api_namespace() WC 11.3.0

protected function get_rest_api_namespace(): string {
	return 'wc-push-notifications-push-tokens';
}