WP_List_Table::get_pagenum(): int

In this article

Gets the current page number.

Return

int

Source

public function get_pagenum() {
	$pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;

	if ( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) {
		$pagenum = $this->_pagination_args['total_pages'];
	}

	return max( 1, $pagenum );
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.