WC_Legacy_API::register_rest_routes()publicWC 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.

Method of the class: WC_Legacy_API{}

No Hooks.

Return

null. Nothing (null).

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() code WC 8.6.1

public function register_rest_routes() {
	wc_deprecated_function( 'WC_Legacy_API::register_rest_routes', '3.7.0', '' );
	$this->register_wp_admin_settings();
}