Yoast_Dismissable_Notice_Ajax::dismiss_notice()publicYoast 1.0

Handles the dismiss notice request.

Метод класса: Yoast_Dismissable_Notice_Ajax{}

Хуков нет.

Возвращает

null. Ничего.

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

$Yoast_Dismissable_Notice_Ajax = new Yoast_Dismissable_Notice_Ajax();
$Yoast_Dismissable_Notice_Ajax->dismiss_notice();

Код Yoast_Dismissable_Notice_Ajax::dismiss_notice() Yoast 19.11

public function dismiss_notice() {
	check_ajax_referer( 'wpseo-dismiss-' . $this->notice_name );

	$this->save_dismissed();

	wp_die( 'true' );
}