WC_REST_WCCOM_Site_SSR_Controller::register_routes()
Register the routes for SSR Controller.
Метод класса: WC_REST_WCCOM_Site_SSR_Controller{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_REST_WCCOM_Site_SSR_Controller = new WC_REST_WCCOM_Site_SSR_Controller(); $WC_REST_WCCOM_Site_SSR_Controller->register_routes();
Список изменений
С версии 7.8.0 | Введена. |
Код WC_REST_WCCOM_Site_SSR_Controller::register_routes() WC REST WCCOM Site SSR Controller::register routes WC 9.8.1
public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'handle_ssr_request' ), 'permission_callback' => array( $this, 'check_permission' ), ), ), ); }