WP_Themes_List_Table::tablenav() WordPress Method
The WP_Themes_List_Table::tablenav() method is used to display the table navigation for the themes list table. The tablenav() method takes two arguments: $which and $args. $which is the side of the table navigation to display. It can be either 'top' or 'bottom'. $args is an array of arguments. The following arguments are available: • id – The id attribute for the table navigation. • class – The class attribute for the table navigation. • screen – The current screen object. • display – The current display object. • theme – The current theme object. • status – The current status of the theme. • page – The current page number. • per_page – The number of themes to display per page. • total_pages – The total number of pages. • total_items – The total number of themes. • items_per_page – The number of themes to display per page. • nonce – A nonce for the table navigation. The tablenav() method outputs the table navigation HTML.
WP_Themes_List_Table::tablenav( string $which = 'top' ) #
Contents
Parameters
- $which
(string)(Optional)
Default value: 'top'
Source
File: wp-admin/includes/class-wp-themes-list-table.php
public function tablenav( $which = 'top' ) { if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) { return; } ?> <div class="tablenav themes <?php echo $which; ?>"> <?php $this->pagination( $which ); ?> <span class="spinner"></span> <br class="clear" /> </div> <?php }
Expand full source codeCollapse full source codeView on TracView on GitHub