WC_Admin_Addons::build_parameter_string()public staticWC 1.0

Build url parameter string

Method of the class: WC_Admin_Addons{}

No Hooks.

Return

String. url parameter string

Usage

$result = WC_Admin_Addons::build_parameter_string( $category, $term, $country );
$category(string) (required)
Addon (sub) category.
$term(string) (required)
Search terms.
$country(string) (required)
Store country.

WC_Admin_Addons::build_parameter_string() code WC 8.7.0

public static function build_parameter_string( $category, $term, $country ) {

	$parameters = array(
		'category' => $category,
		'term'     => $term,
		'country'  => $country,
		'locale'   => get_user_locale(),
	);

	return '?' . http_build_query( $parameters );
}