WC_REST_Layout_Templates_Controller{} │ WC 1.0

Устарела с версии 11.0.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

REST API Layout Templates controller class.

The real controller was removed in 11.0 with the deprecated product block editor. This empty stub stays so an in-memory 10.9 controller list, still naming this class while the files are swapped to 11.0 during an update, can instantiate it instead of fataling on the deleted file. It registers nothing.

Хуков нет.

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

$WC_REST_Layout_Templates_Controller = new WC_REST_Layout_Templates_Controller();
// use class methods

Методы

  1. public register_routes()

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

Устарела с 11.0.0

Код WC_REST_Layout_Templates_Controller{} WC 11.2.2

class WC_REST_Layout_Templates_Controller {

	/**
	 * Register routes. Intentionally a no-op.
	 */
	public function register_routes(): void {}
}