public function register_routes() { wc_doing_it_wrong('WP_REST_Controller::register_routes', __('The register_routes() method must be overriden', 'woocommerce'), 'WPAPI-2.0'); }