WC_Legacy_API::register_rest_routes()
Deprecated from version 3.7.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Register REST API routes.
Method of the class: WC_Legacy_API{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Legacy_API = new WC_Legacy_API(); $WC_Legacy_API->register_rest_routes();
Changelog
Deprecated since | 3.7.0 |
WC_Legacy_API::register_rest_routes() WC Legacy API::register rest routes code WC 7.7.0
public function register_rest_routes() { wc_deprecated_function( 'WC_Legacy_API::register_rest_routes', '3.7.0', '' ); $this->register_wp_admin_settings(); }