wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



build_query › WordPress Function

Depuis2.3.0
Dépréciéen/a
build_query ( $data )
Paramètres:
  • (array) $data URL-encode key/value pairs.
    Requis: Oui
Liens:
Voir:
Retourne:
  • (string) URL-encoded string.
Défini(e) dans:
Codex:

Builds 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 );
}