Title: WP_Links_List_Table::extra_tablenav
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Links_List_Table::extra_tablenav( string $which )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#wp--skip-link--target)

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#parameters)󠁿

 `$which`stringrequired

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#source)󠁿

    ```php
    protected function extra_tablenav( $which ) {
    	global $cat_id;

    	if ( 'top' !== $which ) {
    		return;
    	}
    	?>
    	<div class="alignleft actions">
    		<?php
    		$dropdown_options = array(
    			'selected'        => $cat_id,
    			'name'            => 'cat_id',
    			'taxonomy'        => 'link_category',
    			'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items,
    			'hide_empty'      => true,
    			'hierarchical'    => 1,
    			'show_count'      => 0,
    			'orderby'         => 'name',
    		);

    		echo '<label class="screen-reader-text" for="cat_id">' . get_taxonomy( 'link_category' )->labels->filter_by_item . '</label>';

    		wp_dropdown_categories( $dropdown_options );

    		submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    		?>
    	</div>
    	<?php
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-links-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-links-list-table.php#L99)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-links-list-table.php#L99-L127)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#related)󠁿

| Uses | Description | 
| [submit_button()](https://developer.wordpress.org/reference/functions/submit_button/)`wp-admin/includes/template.php` |

Echoes a submit button, with provided text and appropriate class(es).

  | 
| [wp_dropdown_categories()](https://developer.wordpress.org/reference/functions/wp_dropdown_categories/)`wp-includes/category-template.php` |

Displays or retrieves the HTML dropdown list of categories.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [get_taxonomy()](https://developer.wordpress.org/reference/functions/get_taxonomy/)`wp-includes/taxonomy.php` |

Retrieves the taxonomy object of $taxonomy.

  |

[Show 2 more](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_links_list_table/extra_tablenav/?output_format=md#)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_links_list_table%2Fextra_tablenav%2F)
before being able to contribute a note or feedback.