WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks

RestApi::init() protected WC 1.0

Initialize class features.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->init();

Code of RestApi::init() WC 5.6.0

protected function init() {
	add_action( 'rest_api_init', array( $this, 'register_rest_routes' ), 10 );
	add_filter( 'rest_authentication_errors', array( $this, 'store_api_authentication' ) );
	add_action( 'set_logged_in_cookie', array( $this, 'store_api_logged_in_cookie' ) );
}