WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

Features::register_routes() public WC 1.0

Register routes.

{} It's a method of the class: Features{}

No Hooks.

Return

null. Nothing.

Usage

$Features = new Features();
$Features->register_routes();

Code of Features::register_routes() WC 6.1.0

public function register_routes() {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base,
		array(
			array(
				'methods'             => \WP_REST_Server::READABLE,
				'callback'            => array( $this, 'get_features' ),
				'permission_callback' => array( $this, 'get_items_permissions_check' ),
			),
			'schema' => array( $this, 'get_public_item_schema' ),
		)
	);
}