build_query() WP 1.0
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.
1 time = 0.000001s = speed of light | 50000 times = 0.05s = speed of light | PHP 7.2.5, WP 5.0
No Hooks.
Return
String. URL-encoded string.
Usage
build_query( $data );
- $data(array) (required)
- URL-encode key/value pairs.
Notes
- See: _http_build_query() Used to build the query
Changelog
Since 2.3.0 | Introduced. |
Code of build_query() build query WP 5.6
function build_query( $data ) {
return _http_build_query( $data, null, '&', '', false );
}Related Functions
From tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- comment_link()
- content_url()
- get_comments_link()
- get_comments_pagenum_link()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_next_comments_link()
- get_post_embed_url()
- get_post_permalink()
- get_post_type_archive_link()
More from category: Helper Functions
- __return_empty_array()
- __return_empty_string()
- __return_false()
- __return_null()
- __return_true()
- __return_zero()
- get_page_hierarchy()
- get_temp_dir()
- human_readable_duration()
- is_email()
- is_php_version_compatible()
- is_serialized()
- is_serialized_string()
- is_wp_version_compatible()
- map_deep()
- maybe_serialize()
- maybe_unserialize()
- path_join()
- seems_utf8()
- stripslashes_deep()
- timer_stop()
- urlencode_deep()
- wp_array_slice_assoc()
- wp_basename()
- wp_debug_backtrace_summary()
- wp_doing_ajax()
- wp_filter_object_list()
- wp_generate_uuid4()
- wp_html_split()
- wp_is_json_request()
- wp_is_numeric_array()
- wp_is_uuid()
- wp_json_encode()
- wp_kses_array_lc()
- wp_kses_hair()
- wp_kses_uri_attributes()
- wp_list_filter()
- wp_list_pluck()