WP_List_Table::views()
Displays the list of views available on this table.
Метод класса: WP_List_Table{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$WP_List_Table = new WP_List_Table(); $WP_List_Table->views();
Список изменений
С версии 3.1.0 | Введена. |
Код WP_List_Table::views() WP List Table::views WP 6.7.2
public function views() { $views = $this->get_views(); /** * Filters the list of available list table views. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen. * * @since 3.1.0 * * @param string[] $views An array of available list table views. */ $views = apply_filters( "views_{$this->screen->id}", $views ); if ( empty( $views ) ) { return; } $this->screen->render_screen_reader_content( 'heading_views' ); echo "<ul class='subsubsub'>\n"; foreach ( $views as $class => $view ) { $views[ $class ] = "\t<li class='$class'>$view"; } echo implode( " |</li>\n", $views ) . "</li>\n"; echo '</ul>'; }