# wordpress-seo/18.4/src/presenters/admin/auto-update-notification-presenter.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.4. 54 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.4/code/src/presenters/admin/auto-update-notification-presenter.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.4/raw/src/presenters/admin/auto-update-notification-presenter.php
- Modified: 2021-03-22T13:43:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.4/code/src/presenters/admin/auto-update-notification-presenter.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Presenters\Admin;

use Yoast\WP\SEO\Presenters\Abstract_Presenter;

/**
 * Class Auto_Update_Notification_Presenter.
 */
class Auto_Update_Notification_Presenter extends Abstract_Presenter {

	/**
	 * Returns the notification as an HTML string.
	 *
	 * @return string The notification in an HTML string representation.
	 */
	public function present() {
		$notification_text  = '<p>';
		$notification_text .= $this->get_message();
		$notification_text .= '</p>';

		return $notification_text;
	}

	/**
	 * Returns the message to show.
	 *
	 * @return string The message.
	 */
	protected function get_message() {
		if ( \is_multisite() ) {
			return \sprintf(
				/* Translators: %1$s expands to 'Yoast SEO', %2$s to an opening anchor tag for a link leading to the Plugins page, and %3$s to a closing anchor tag. */
				\esc_html__(
					'We see that you enabled automatic updates for WordPress. We recommend that you do this for %1$s as well. This way we can guarantee that WordPress and %1$s will continue to run smoothly together. Please contact your network admin to enable auto-updates for %1$s.',
					'wordpress-seo'
				),
				'Yoast SEO'
			);
		}

		return \sprintf(
			/* Translators: %1$s expands to 'Yoast SEO', %2$s to an opening anchor tag for a link leading to the Plugins page, and %3$s to a closing anchor tag. */
			\esc_html__(
				'We see that you enabled automatic updates for WordPress. We recommend that you do this for %1$s as well. This way we can guarantee that WordPress and %1$s will continue to run smoothly together. %2$sGo to your plugins overview to enable auto-updates for %1$s.%3$s',
				'wordpress-seo'
			),
			'Yoast SEO',
			'<a href="' . \esc_url( \get_admin_url( null, 'plugins.php' ) ) . '">',
			'</a>'
		);
	}
}

```
