A WordPress-centric search engine for devs and theme authors



build_query ›

Since2.3.0
Deprecatedn/a
build_query ( $data )
Parameters:
  • (array) $data URL-encode key/value pairs.
    Required: Yes
Links:
  • for more on what http_build_query() does.
See:
Returns:
  • (string) URL-encoded string.
Defined at:
Codex:

Build URL query based on an associative and, or indexed array.

This is a convenient function for easily building url queries. It sets the separator to '&' and uses _http_build_query() function.



Source

function build_query( $data ) {
	return _http_build_query( $data, null, '&', '', false );
}