Yoast\WP\SEO\Alerts\Application\Ping_Other_Admins
Ping_Other_Admins_Alert::get_ping_other_admins_notification
Build the ping-other-admins notification.
Метод класса: Ping_Other_Admins_Alert{}
Хуков нет.
Возвращает
Yoast_Notification. The ping-other-admins notification.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_ping_other_admins_notification(): Yoast_Notification;
Код Ping_Other_Admins_Alert::get_ping_other_admins_notification() Ping Other Admins Alert::get ping other admins notification Yoast 28.9
private function get_ping_other_admins_notification(): Yoast_Notification {
$message = $this->get_message();
return new Yoast_Notification(
$message,
[
'id' => self::NOTIFICATION_ID,
'type' => Yoast_Notification::WARNING,
'capabilities' => [ 'wpseo_manage_options' ],
'priority' => 20,
'resolve_nonce' => \wp_create_nonce( 'wpseo-resolve-alert-nonce' ),
],
);
}