WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

Pagination::get_current_page() protected WC 1.0

Get current page.

{} It's a 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.

Code of Pagination::get_current_page() WC 5.7.1

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