Skip to content

Instantly share code, notes, and snippets.

@gvgvgvijayan
Created January 23, 2021 07:45
Show Gist options
  • Save gvgvgvijayan/a3fffc22a728ef164d464cff015cec3a to your computer and use it in GitHub Desktop.
Save gvgvgvijayan/a3fffc22a728ef164d464cff015cec3a to your computer and use it in GitHub Desktop.
<?php
...
/**
* Generates the table navigation above or below the table
*
* @param string $which Position of the navigation, either top or bottom.
*
* @return void
*/
protected function display_tablenav( $which ) {
?>
<div class="tablenav <?php echo esc_attr( $which ); ?>">
<?php if ( $this->has_items() ) : ?>
<div class="alignleft actions bulkactions">
<?php $this->bulk_actions( $which ); ?>
</div>
<?php
endif;
$this->extra_tablenav( $which );
$this->pagination( $which );
?>
<br class="clear" />
</div>
<?php
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment