mins notification. */ 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, ] ); } /** * Returns the notification as an HTML string. * * @return string The HTML string representation of the notification. */ private function get_message() { $shortlink = $this->short_link_helper->get( 'https://yoa.st/new-admin-newsletter-sign-up/' ); $message = \sprintf( /* translators: %1$s and %3$s expands to "Yoast SEO" , %2$s expands to an opening link tag, %4$s expands to a closing link tag. */ \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? %2$sSign up for the %3$s newsletter for short, practical weekly tips%4$s.', 'wordpress-seo' ), 'Yoast SEO', '', 'Yoast SEO', '' ); $notification_text = '

' . $message . '

'; $notification_text .= ''; $notification_text .= \esc_html__( 'Dismiss', 'wordpress-seo' ); $notification_text .= ''; return $notification_text; } }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo/src/alerts/application/ping-other-admins/ping-other-admins-alert.php:1) in /htdocs/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo/src/alerts/application/ping-other-admins/ping-other-admins-alert.php:1) in /htdocs/wp-includes/pluggable.php on line 1453