Automattic\WooCommerce\StoreApi\Utilities
Pagination::get_current_page()
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() Pagination::get current page code WC 9.2.3
protected function get_current_page( $request ) { return (int) $request->get_param( 'page' ); }