WC_Admin_Addons::build_parameter_string()
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() WC Admin Addons::build parameter string code WC 7.5.1
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 ); }