On this page
wp_parse_str( string $string, array $array )
Parses a string into variables to be stored in an array.
Parameters
$stringstring Required-
The string to be parsed.
$arrayarray Required-
Variables will be stored in this array.
Source
File: wp-includes/formatting.php. View all references
function wp_parse_str( $string, &$array ) {
parse_str( (string) $string, $array );
/**
* Filters the array of variables derived from a parsed string.
*
* @since 2.2.1
*
* @param array $array The array populated with variables.
*/
$array = apply_filters( 'wp_parse_str', $array );
}
Hooks
- apply_filters( 'wp_parse_str',
array $array ) -
Filters the array of variables derived from a parsed string.
Related
Uses
| Uses | Description |
|---|---|
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| WP_REST_Widgets_Controller::get_item_schema() wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php | Retrieves the widget’s schema, conforming to JSON Schema. |
| WP_REST_Widget_Types_Controller::register_routes() wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php | Registers the widget type routes. |
| WP_REST_Server::serve_batch_request_v1() wp-includes/rest-api/class-wp-rest-server.php | Serves the batch/v1 request. |
| WP_REST_Request::from_url() wp-includes/rest-api/class-wp-rest-request.php | Retrieves a WP_REST_Request object from a full URL. |
| paginate_links() wp-includes/general-template.php | Retrieves paginated links for archive post pages. |
| wp_parse_args() wp-includes/functions.php | Merges user defined arguments into defaults array. |
| add_query_arg() wp-includes/functions.php | Retrieves a modified URL query string. |
| wp_style_loader_src() wp-includes/script-loader.php | Administration Screen CSS for changing the styles. |
Changelog
| Version | Description |
|---|---|
| 2.2.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_parse_str