WordPress at a glance
function is not described

WC_Legacy_API::init() public WC 1.0

Init the legacy API.

{} 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->init();

Code of WC_Legacy_API::init() WC 5.0.0

<?php
public function init() {
	add_action( 'parse_request', array( $this, 'handle_rest_api_requests' ), 0 );
}