Automattic\WooCommerce\RestApi

Server::get_v4_controllersprotectedWC 1.0

List of controllers in the wc/v4 namespace.

Method of the class: Server{}

No Hooks.

Returns

Array.

Usage

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

Server::get_v4_controllers() code WC 10.3.6

protected function get_v4_controllers() {
	return array(
		'ping'             => 'WC_REST_Ping_V4_Controller',
		'fulfillments'     => 'WC_REST_Fulfillments_V4_Controller',
		'products'         => 'WC_REST_Products_V4_Controller',
		'order-notes'      => OrderNotesController::class,
		'shipping-zones'   => ShippingZonesController::class,
		'orders'           => OrdersController::class,
		'settings-general' => 'WC_REST_General_Settings_V4_Controller',
		'settings-email'   => 'WC_REST_Email_Settings_V4_Controller',
		// This is a wrapper that redirects V4 settings requests to the V3 settings controller.
		'settings'         => 'WC_REST_Settings_V4_Controller',
	);
}