Yoast\WP\SEO\Presenters

Url_List_Presenter::presentpublicYoast 1.0

Presents the URL list.

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

Хуков нет.

Возвращает

Строку. The URL list.

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

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

Код Url_List_Presenter::present() Yoast 25.3

public function present() {
	$output = '<ul class="' . $this->class_name . '">';
	foreach ( $this->links as $link ) {
		$output .= '<li><a';
		if ( $this->target_blank ) {
			$output .= ' target = "_blank"';
		}
		$output .= ' href="' . $link['permalink'] . '">' . $link['title'] . '</a></li>';
	}
	$output .= '</ul>';

	return $output;
}