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' ) #


Parameters

$which

(string)(Optional)

Default value: 'top'


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
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.