WP_Application_Passwords_List_Table::display_tablenav()protectedWP 5.6.0

Generates custom table navigation to prevent conflicting nonces.

Method of the class: WP_Application_Passwords_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->display_tablenav( $which );
$which(string) (required)
The location of the bulk actions: Either 'top' or 'bottom'.

Changelog

Since 5.6.0 Introduced.

WP_Application_Passwords_List_Table::display_tablenav() code WP 6.6.2

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