Filter hook 'wp_parse_str'

in WP Core File wp-includes/formatting.php at line 5168

View Source

wp_parse_str

Filter Hook
Description
Filters the array of variables derived from a parsed string.

Hook Information

File Location wp-includes/formatting.php View on GitHub
Hook Type Filter
Line Number 5168

Hook Parameters

Type Name Description
array $result The array populated with variables.

Usage Examples

Basic Usage
<?php
// Hook into wp_parse_str
add_filter('wp_parse_str', 'my_custom_filter', 10, 1);

function my_custom_filter($result) {
    // Your custom filtering logic here
    return $result;
}

Source Code Context

wp-includes/formatting.php:5168 - How this hook is used in WordPress core
<?php
5163  	 *
5164  	 * @since 2.2.1
5165  	 *
5166  	 * @param array $result The array populated with variables.
5167  	 */
5168  	$result = apply_filters( 'wp_parse_str', $result );
5169  }
5170  
5171  /**
5172   * Converts lone less than signs.
5173   *

PHP Documentation

<?php
/**
	 * Filters the array of variables derived from a parsed string.
	 *
	 * @since 2.2.1
	 *
	 * @param array $result The array populated with variables.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/formatting.php
Related Hooks

Related hooks will be displayed here in future updates.