WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

Pagination::get_link_base() protected WC 1.0

Get base for links from the request object.

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

Code of Pagination::get_link_base() WC 5.6.0

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