Yoast\WP\SEO\Presenters
Url_List_Presenter::present()
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 22.4
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; }