Automattic\WooCommerce\Blocks
RestApi::init() protected WC 1.0
Initialize class features.
{} Это метод класса: RestApi{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->init();
Код RestApi::init() RestApi::init WC 5.2.2
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' ) );
}