WordPress at Your Fingertips
function is not described

WC_WCCOM_Site::register_rest_namespace() public WC 3.7.0

Register wccom-site REST namespace.

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

No Hooks.

Return

Array. Registered namespaces.

Usage

$result = WC_WCCOM_Site::register_rest_namespace( $namespaces );
$namespaces(array) (required)
List of registered namespaces.

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site::register_rest_namespace() WC 5.8.0

public static function register_rest_namespace( $namespaces ) {
	require_once WC_ABSPATH . 'includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-errors.php';
	require_once WC_ABSPATH . 'includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php';

	$namespaces['wccom-site/v1'] = array(
		'installer' => 'WC_REST_WCCOM_Site_Installer_Controller',
	);

	return $namespaces;
}