Automattic\WooCommerce\Internal\PushNotifications\Controllers
PushNotificationStatusRestController::get_rest_api_namespace
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.
Метод класса: PushNotificationStatusRestController{}
Хуков нет.
Возвращает
string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_rest_api_namespace(): string;
Список изменений
| С версии 11.2.0 | Введена. |
Код PushNotificationStatusRestController::get_rest_api_namespace() PushNotificationStatusRestController::get rest api namespace WC 11.2.2
protected function get_rest_api_namespace(): string {
return 'wc-push-notifications-status';
}