WordPress at Your Fingertips
function is not described

WP_Links_List_Table::extra_tablenav() protected WP 1.0

{} It's a method of the class: WP_Links_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->extra_tablenav( $which );
$which(string) (required)
-

Notes

  • Global. Int. $cat_id

Code of WP_Links_List_Table::extra_tablenav() WP 5.8.2

<?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
}