Yoast\WP\SEO\Routes
Settings_Introduction_Route::register_routes()
Устарела с версии 20.7. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Registers routes with WordPress.
Метод класса: Settings_Introduction_Route{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Settings_Introduction_Route = new Settings_Introduction_Route(); $Settings_Introduction_Route->register_routes();
Список изменений
Устарела с | 20.7 |
Код Settings_Introduction_Route::register_routes() Settings Introduction Route::register routes Yoast 22.4
public function register_routes() { \_deprecated_function( __METHOD__, 'Yoast SEO 20.7' ); \register_rest_route( Main::API_V1_NAMESPACE, self::WISTIA_EMBED_PERMISSION, [ [ 'methods' => 'GET', 'callback' => [ $this, 'get_wistia_embed_permission' ], 'permission_callback' => [ $this, 'permission_manage_options' ], ], [ 'methods' => 'POST', 'callback' => [ $this, 'set_wistia_embed_permission' ], 'permission_callback' => [ $this, 'permission_manage_options' ], 'args' => [ 'value' => [ 'required' => true, 'type' => 'bool', ], ], ], ] ); \register_rest_route( Main::API_V1_NAMESPACE, self::SHOW, [ [ 'methods' => 'GET', 'callback' => [ $this, 'get_show' ], 'permission_callback' => [ $this, 'permission_manage_options' ], ], [ 'methods' => 'POST', 'callback' => [ $this, 'set_show' ], 'permission_callback' => [ $this, 'permission_manage_options' ], 'args' => [ 'value' => [ 'required' => true, 'type' => 'bool', ], ], ], ] ); }