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

_yoast_display_notifications() Yoast 1.0

Create the notifications HTML with restore/dismiss button.

Хуков нет.

Возвращает

Строку. The output to render.

Использование

_yoast_display_notifications( $list, $status );
$list(массив) (обязательный)
List of notifications.
$status(строка) (обязательный)
Status of the notifications (active/dismissed).

Код _yoast_display_notifications() Yoast 15.1.1

<?php
function _yoast_display_notifications( $list, $status ) {
	$notifications = '';

	foreach ( $list as $notification ) {

		switch ( $status ) {
			case 'active':
				$button = sprintf(
					'<button type="button" class="button dismiss"><span class="screen-reader-text">%1$s</span><span class="dashicons dashicons-hidden"></span></button>',
					esc_html__( 'Hide this item.', 'wordpress-seo' )
				);
				break;

			case 'dismissed':
				$button = sprintf(
					'<button type="button" class="button restore"><span class="screen-reader-text">%1$s</span><span class="dashicons yoast-svg-icon-eye"></span></button>',
					esc_html__( 'Show this item.', 'wordpress-seo' )
				);
				break;
		}

		$notifications .= sprintf(
			'<div class="yoast-notification-holder" id="%1$s" data-nonce="%2$s" data-json="%3$s">%4$s%5$s</div>',
			esc_attr( $notification->get_id() ),
			esc_attr( $notification->get_nonce() ),
			esc_attr( $notification->get_json() ),
			// This needs to be fixed in https://github.com/Yoast/wordpress-seo-premium/issues/2548.
			$notification,
			// Note: $button is properly escaped above.
			$button
		);
	}

	return $notifications;
}