Automattic\WooCommerce\StoreApi\Utilities

Pagination::get_link_base()protectedWC 1.0

Get base for links from the request object.

Method of the class: Pagination{}

No Hooks.

Return

String.

Usage

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

Pagination::get_link_base() code WC 9.0.1

protected function get_link_base( $request ) {
	return esc_url( add_query_arg( $request->get_query_params(), rest_url( $request->get_route() ) ) );
}