WC_REST_WCCOM_Site_Connection_Controller::register_routes()
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 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' ), ), ), ); }