WP_REST_Controller::register_routes()
Registers the routes for the objects of the controller.
Метод класса: WP_REST_Controller{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_REST_Controller = new WP_REST_Controller(); $WP_REST_Controller->register_routes();
Заметки
- Смотрите: register_rest_route()
Список изменений
С версии 4.7.0 | Введена. |
Код WP_REST_Controller::register_routes() WP REST Controller::register routes WP 6.5.2
public function register_routes() { _doing_it_wrong( 'WP_REST_Controller::register_routes', /* translators: %s: register_routes() */ sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7.0' ); }