WC_WCCOM_Site::register_rest_namespace( array $namespaces )

Register wccom-site REST namespace.


Description Description


Parameters Parameters

$namespaces

(Required) List of registered namespaces.


Top ↑

Return Return

(array) Registered namespaces.


Top ↑

Source Source

File: includes/wccom-site/class-wc-wccom-site.php

	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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.