Automattic\WooCommerce\Internal\PushNotifications\Controllers

PushNotificationStatusRestController::get_rest_api_namespace │ protected │ WC 11.2.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.

Method of the class: PushNotificationStatusRestController{}

No Hooks.

Returns

string.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_rest_api_namespace(): string;

Changelog

Since 11.2.0 Introduced.

PushNotificationStatusRestController::get_rest_api_namespace() code WC 11.3.0

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