Automattic\WooCommerce\Internal\PushNotifications\Controllers
PushTokenRestController::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.
Method of the class: PushTokenRestController{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_rest_api_namespace(): string;
Changelog
| Since 10.6.0 | Introduced. |
PushTokenRestController::get_rest_api_namespace() PushTokenRestController::get rest api namespace code WC 11.0.1
protected function get_rest_api_namespace(): string {
return 'wc-push-notifications-push-tokens';
}