WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Routes

Alert_Dismissal_Route::register_routes() public Yoast 1.0

Registers routes with WordPress.

{} Это метод класса: Alert_Dismissal_Route{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$Alert_Dismissal_Route = new Alert_Dismissal_Route();
$Alert_Dismissal_Route->register_routes();

Код Alert_Dismissal_Route::register_routes() Yoast 17.2

public function register_routes() {
	$dismiss_route_args = [
		'methods'             => 'POST',
		'callback'            => [ $this, 'dismiss' ],
		'permission_callback' => [ $this, 'can_dismiss' ],
		'args'                => [
			'key' => [
				'validate_callback' => [ $this->alert_dismissal_action, 'is_allowed' ],
				'required'          => true,
			],
		],
	];

	\register_rest_route( Main::API_V1_NAMESPACE, self::DISMISS_ROUTE, $dismiss_route_args );
}