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