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.
Method of the class: NotificationPreferencesRestController{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_rest_api_namespace(): string;
Changelog
| Since 10.8.0 | Introduced. |
NotificationPreferencesRestController::get_rest_api_namespace() NotificationPreferencesRestController::get rest api namespace code WC 10.9.1
protected function get_rest_api_namespace(): string {
return 'wc-push-notifications-preferences';
}