WP_Application_Passwords_List_Table::display_tablenav() WordPress Method

The WP_Application_Passwords_List_Table::display_tablenav() method is used to display the table navigation for the Application Passwords list table. This includes the bulk actions dropdown and the pagination controls.

WP_Application_Passwords_List_Table::display_tablenav( string $which ) #

Generates custom table navigation to prevent conflicting nonces.


Parameters

$which

(string)(Required)The location of the bulk actions: 'top' or 'bottom'.


Top ↑

Source

File: wp-admin/includes/class-wp-application-passwords-list-table.php

	protected function display_tablenav( $which ) {
		?>
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
			<?php if ( 'bottom' === $which ) : ?>
				<div class="alignright">
					<button type="button" name="revoke-all-application-passwords" id="revoke-all-application-passwords" class="button delete"><?php _e( 'Revoke all application passwords' ); ?></button>
				</div>
			<?php endif; ?>
			<div class="alignleft actions bulkactions">
				<?php $this->bulk_actions( $which ); ?>
			</div>
			<?php
			$this->extra_tablenav( $which );
			$this->pagination( $which );
			?>
			<br class="clear" />
		</div>
		<?php
	}


Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

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.