views_{$this->screen->id}

views_{$this->screen->id}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('views_{$this->screen->id}') is found 3 times:

  • /wp-admin/includes/class-wp-list-table.php line 521
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    * @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' );
  • /wp-admin/includes/class-wp-media-list-table.php line 301
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    <?php
    $this->extra_tablenav( 'bar' );
     
    /** This filter is documented in wp-admin/includes/class-wp-list-table.php */
    $views = apply_filters( "views_{$this->screen->id}", array() );
     
    // Back compat for pre-4.0 view links.
    if ( ! empty( $views ) ) {
        echo '<ul class="filter-links">';
        foreach ( $views as $class => $view ) {
            echo "<li class='$class'>$view</li>";
  • /wp-admin/includes/class-wp-plugin-install-list-table.php line 340

    public function views() {
    $views = $this->get_views();

    /** This filter is documented in wp-admin/includes/class-wp-list-table.php */
    $views = apply_filters( “views_{$this->screen->id}”, $views );

    $this->screen->render_screen_reader_content( ‘heading_views’ );
    ?>