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

Yoast\WP\SEO\Routes

Alert_Dismissal_Route::dismiss() public Yoast 1.0

Dismisses an alert.

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

Хуков нет.

Возвращает

WP_REST_Response. The response.

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

$Alert_Dismissal_Route = new Alert_Dismissal_Route();
$Alert_Dismissal_Route->dismiss( $request );
$request(WP_REST_Request) (обязательный)
The request. This request should have a key param set.

Код Alert_Dismissal_Route::dismiss() Yoast 17.2

public function dismiss( WP_REST_Request $request ) {
	$success = $this->alert_dismissal_action->dismiss( $request['key'] );
	$status  = $success === ( true ) ? 200 : 400;

	return new WP_REST_Response(
		(object) [
			'success' => $success,
			'status'  => $status,
		],
		$status
	);
}