Yoast\WP\SEO\Presenters
Url_List_Presenter::present() public Yoast 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() Url List Presenter::present Yoast 15.6.2
public function present() {
$output = '<ul class="' . $this->class_name . '">';
foreach ( $this->links as $link ) {
$output .= '<li><a href="' . $link['permalink'] . '">' . $link['title'] . '</a></li>';
}
$output .= '</ul>';
return $output;
}