Automattic\WooCommerce\Internal\PushNotifications\Controllers

PushNotificationRestController::register │ public │ WC 10.7.0

Registers the REST API route on the rest_api_init hook.

Метод класса: PushNotificationRestController{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

$PushNotificationRestController = new PushNotificationRestController();
$PushNotificationRestController->register(): void;

Список изменений

С версии 10.7.0 Введена.

Код PushNotificationRestController::register() WC 11.2.1

public function register(): void {
	add_action( 'rest_api_init', array( $this, 'register_routes' ) );
}