Yoast\WP\SEO\Alerts\Application\Ping_Other_Admins
Ping_Other_Admins_Alert::get_message
Returns the notification as an HTML string.
Метод класса: Ping_Other_Admins_Alert{}
Хуков нет.
Возвращает
string. The HTML string representation of the notification.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_message();
Код Ping_Other_Admins_Alert::get_message() Ping Other Admins Alert::get message Yoast 28.9
private function get_message() {
$message = \sprintf(
/* translators: %1$s expands to "Yoast SEO". */
\esc_html__( 'Looks like you’re new here. %1$s makes it easy to optimize your website for search engines. Want to keep your site healthy and easier to find? Sign up below to receive practical emails to get you started!', 'wordpress-seo' ),
'Yoast SEO',
);
$notification_text = '<p>' . $message . '</p>';
return $notification_text;
}