WC_Legacy_API::register_rest_routes() public WC 1.0
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.
{} It's a 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 | 3.7.0 |
Code of WC_Legacy_API::register_rest_routes() WC Legacy API::register rest routes WC 5.0.0
public function register_rest_routes() {
wc_deprecated_function( 'WC_Legacy_API::register_rest_routes', '3.7.0', '' );
$this->register_wp_admin_settings();
}