WC_REST_Layout_Templates_Controller{}
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
- public register_routes()
Changelog
| Deprecated since | 11.0.0 |
WC_REST_Layout_Templates_Controller{} 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 {}
}