Yoast\WP\SEO\Presenters\Admin
Indexing_Notification_Presenter::present()
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() Indexing Notification Presenter::present Yoast 24.1
public function present() { $notification_text = '<p>' . $this->get_message( $this->reason ); $notification_text .= $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; }