WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

WPSEO_Admin_Media_Purge_Notification::get_notification() private Yoast 1.0

Retrieves the notification that should be shown or removed.

{} Это метод класса: WPSEO_Admin_Media_Purge_Notification{}

Хуков нет.


Yoast_Notification. The notification to use.


// private - только в коде основоного (родительского) класса
$result = $this->get_notification();

Код WPSEO_Admin_Media_Purge_Notification::get_notification() Yoast 16.2

private function get_notification() {
	$content = sprintf(
		/* translators: %1$s expands to the link to the article, %2$s closes the link tag. */
		__( 'Your site\'s settings currently allow attachment URLs on your site to exist. Please read %1$sthis post about a potential issue%2$s with attachment URLs and check whether you have the correct setting for your site.', 'wordpress-seo' ),
		'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/2r8' ) ) . '" rel="noopener noreferrer" target="_blank">',

	$content .= '<br><br>';
	$content .= sprintf(
		/* translators: %1$s dismiss link open tag, %2$s closes the link tag. */
		__( 'If you know what this means and you do not want to see this message anymore, you can %1$sdismiss this message%2$s.', 'wordpress-seo' ),
		'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_dashboard&dismiss=' . $this->notification_id ) ) . '">',

	return new Yoast_Notification(
			'type'         => Yoast_Notification::ERROR,
			'id'           => $this->notification_id,
			'capabilities' => 'wpseo_manage_options',
			'priority'     => 1,