Indexing_List_Item_Presenter::present()publicYoast 1.0

Presents the list item for the tools menu.

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

Хуков нет.


Строку. The list item HTML.


$Indexing_List_Item_Presenter = new Indexing_List_Item_Presenter();

Код Indexing_List_Item_Presenter::present() Yoast 22.7

public function present() {
	$output  = \sprintf( '<li><strong>%s</strong><br/>', \esc_html__( 'Optimize SEO Data', 'wordpress-seo' ) );
	$output .= \sprintf(
		'%1$s <a href="%2$s" target="_blank">%3$s</a>',
		\esc_html__( 'You can speed up your site and get insight into your internal linking structure by letting us perform a few optimizations to the way SEO data is stored. If you have a lot of content it might take a while, but trust us, it\'s worth it.', 'wordpress-seo' ),
		\esc_url( $this->short_link_helper->get( 'https://yoa.st/3-z' ) ),
		\esc_html__( 'Learn more about the benefits of optimized SEO data.', 'wordpress-seo' )

	$output .= '<div id="yoast-seo-indexing-action" style="margin: 16px 0;"></div>';
	$output .= '</li>';

	return $output;