Automattic\WooCommerce\Admin\API\AI

AIEndpoint::register()publicWC 1.0

Register routes.

Метод класса: AIEndpoint{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$AIEndpoint = new AIEndpoint();
$AIEndpoint->register( $args );
$args(массив) (обязательный)
Either an array of options for the endpoint, or an array of arrays for multiple methods.
По умолчанию: empty array

Код AIEndpoint::register() WC 9.7.1

public function register( $args ) {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base . '/' . $this->endpoint,
		$args
	);
}