Yoast\WP\SEO\Presenters\Admin

Indexing_Notification_Presenter::present()publicYoast 1.0

Returns the notification as an HTML string.

Метод класса: Indexing_Notification_Presenter{}

Хуков нет.

Возвращает

Строку. The HTML string representation of the notification.

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

$Indexing_Notification_Presenter = new Indexing_Notification_Presenter();
$Indexing_Notification_Presenter->present();

Код Indexing_Notification_Presenter::present() Yoast 22.3

public function present() {
	$notification_text  = '<p>' . $this->get_message( $this->reason ) . '</p>';
	$notification_text .= '<p>' . $this->get_time_estimate( $this->total_unindexed ) . '</p>';
	$notification_text .= '<a class="button" href="' . \get_admin_url( null, 'admin.php?page=wpseo_tools&start-indexation=true' ) . '">';
	$notification_text .= \esc_html__( 'Start SEO data optimization', 'wordpress-seo' );
	$notification_text .= '</a>';

	return $notification_text;
}