Uma área de pesquisa sobre o WordPress para devs e autores do tema



build_query ›

Desde2.3.0
Obsoleton/a
build_query ( $data )
Parâmetros:
  • (array) $data URL-encode key/value pairs.
    Required: Yes
Links:
  • for more on what http_build_query() does.
Ver:
Retorna:
  • (string) URL-encoded string.
Definido em:
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.



Fonte

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