WC_REST_WCCOM_Site_Connection_Controller::register_routes()publicWC 9.6.0

Register the routes for Site Connection Controller.

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

Хуков нет.

Возвращает

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

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

$WC_REST_WCCOM_Site_Connection_Controller = new WC_REST_WCCOM_Site_Connection_Controller();
$WC_REST_WCCOM_Site_Connection_Controller->register_routes();

Список изменений

С версии 9.6.0 Введена.

Код WC_REST_WCCOM_Site_Connection_Controller::register_routes() WC 9.8.2

public function register_routes() {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base . '/disconnect',
		array(
			array(
				'methods'             => WP_REST_Server::EDITABLE,
				'callback'            => array( $this, 'handle_disconnect_request' ),
				'permission_callback' => array( $this, 'check_permission' ),
			),
		),
	);
}