WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\API

Init::rest_api_init() public WC 1.0

Init REST API.

{} Это метод класса: Init{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$Init = new Init();
$Init->rest_api_init();

Код Init::rest_api_init() WC 4.7.1

<?php
public function rest_api_init() {
	$controllers = array(
		'Automattic\WooCommerce\Admin\API\Notes',
		'Automattic\WooCommerce\Admin\API\NoteActions',
		'Automattic\WooCommerce\Admin\API\Coupons',
		'Automattic\WooCommerce\Admin\API\Customers',
		'Automattic\WooCommerce\Admin\API\Data',
		'Automattic\WooCommerce\Admin\API\DataCountries',
		'Automattic\WooCommerce\Admin\API\DataDownloadIPs',
		'Automattic\WooCommerce\Admin\API\Leaderboards',
		'Automattic\WooCommerce\Admin\API\Marketing',
		'Automattic\WooCommerce\Admin\API\MarketingOverview',
		'Automattic\WooCommerce\Admin\API\Options',
		'Automattic\WooCommerce\Admin\API\Orders',
		'Automattic\WooCommerce\Admin\API\Products',
		'Automattic\WooCommerce\Admin\API\ProductCategories',
		'Automattic\WooCommerce\Admin\API\ProductVariations',
		'Automattic\WooCommerce\Admin\API\ProductReviews',
		'Automattic\WooCommerce\Admin\API\ProductVariations',
		'Automattic\WooCommerce\Admin\API\Reports\Controller',
		'Automattic\WooCommerce\Admin\API\SettingOptions',
		'Automattic\WooCommerce\Admin\API\Reports\Import\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Export\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Products\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Variations\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Products\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Revenue\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Orders\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Categories\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Taxes\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Taxes\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Coupons\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Coupons\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Stock\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Stock\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Downloads\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Downloads\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Customers\Controller',
		'Automattic\WooCommerce\Admin\API\Reports\Customers\Stats\Controller',
		'Automattic\WooCommerce\Admin\API\Taxes',
		'Automattic\WooCommerce\Admin\API\Themes',
		'Automattic\WooCommerce\Admin\API\Plugins',
		'Automattic\WooCommerce\Admin\API\OnboardingProfile',
		'Automattic\WooCommerce\Admin\API\OnboardingTasks',
		'Automattic\WooCommerce\Admin\API\OnboardingThemes',
	);

	// The performance indicators controller must be registered last, after other /stats endpoints have been registered.
	$controllers[] = 'Automattic\WooCommerce\Admin\API\Reports\PerformanceIndicators\Controller';

	$controllers = apply_filters( 'woocommerce_admin_rest_controllers', $controllers );

	foreach ( $controllers as $controller ) {
		$this->$controller = new $controller();
		$this->$controller->register_routes();
	}
}