WordPress at a glance
function is not described

WC_API_Server::get_paginated_url() private WC 2.1

Returns the request URL with the page query parameter set to the specified page

{} It's a method of the class: WC_API_Server{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_paginated_url( $page );
$page(int) (required)
-

Changelog

Since 2.1 Introduced.

Code of WC_API_Server::get_paginated_url() WC 5.0.0

<?php
private function get_paginated_url( $page ) {

	// remove existing page query param
	$request = remove_query_arg( 'page' );

	// add provided page query param
	$request = urldecode( add_query_arg( 'page', $page, $request ) );

	// get the home host
	$host = parse_url( get_home_url(), PHP_URL_HOST );

	return set_url_scheme( "http://{$host}{$request}" );
}