Yoast\WP\SEO\Routes
Settings_Introduction_Route::register_routes()
Registers routes with WordPress.
Метод класса: Settings_Introduction_Route{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Settings_Introduction_Route = new Settings_Introduction_Route(); $Settings_Introduction_Route->register_routes();
Код Settings_Introduction_Route::register_routes() Settings Introduction Route::register routes Yoast 20.4
public function register_routes() { \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', ], ], ], ] ); }