WC_REST_Layout_Templates_Controller{}WC 1.0

Deprecated since 11.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

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.

No Hooks.

Usage

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

Methods

  1. public register_routes()

Changelog

Deprecated since 11.0.0

WC_REST_Layout_Templates_Controller{} code WC 11.0.1

class WC_REST_Layout_Templates_Controller {

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