Automattic\WooCommerce\StoreApi\Utilities

Pagination::get_current_page()protectedWC 1.0

Get current page.

Method of the class: Pagination{}

No Hooks.

Return

Int. Get the page from the request object.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_current_page( $request );
$request(\WP_REST_Request) (required)
The request object.

Pagination::get_current_page() code WC 8.6.1

protected function get_current_page( $request ) {
	return (int) $request->get_param( 'page' );
}