build_query( array $data )
Build URL query based on an associative and, or indexed array.
Contents
Description Description
This is a convenient function for easily building url queries. It sets the separator to ‘&’ and uses _http_build_query() function.
See also See also
- _http_build_query(): Used to build the query
Parameters Parameters
- $data
-
(array) (Required) URL-encode key/value pairs.
Return Return
(string) URL-encoded string.
Source Source
File: wp-includes/functions.php
function build_query( $data ) { return _http_build_query( $data, null, '&', '', false ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |