wp_http_ixr_client_headers
Filter HookDescription
Filters the headers collection to be sent to the XML-RPC server.Hook Information
File Location |
wp-includes/class-wp-http-ixr-client.php
View on GitHub
|
Hook Type | Filter |
Line Number | 81 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$headers
|
Associative array of headers to be sent. |
Usage Examples
Basic Usage
<?php
// Hook into wp_http_ixr_client_headers
add_filter('wp_http_ixr_client_headers', 'my_custom_filter', 10, 1);
function my_custom_filter($headers) {
// Your custom filtering logic here
return $headers;
}
Source Code Context
wp-includes/class-wp-http-ixr-client.php:81
- How this hook is used in WordPress core
<?php
76 *
77 * @since 4.4.0
78 *
79 * @param string[] $headers Associative array of headers to be sent.
80 */
81 $args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] );
82
83 if ( false !== $this->timeout ) {
84 $args['timeout'] = $this->timeout;
85 }
86
PHP Documentation
<?php
/**
* Filters the headers collection to be sent to the XML-RPC server.
*
* @since 4.4.0
*
* @param string[] $headers Associative array of headers to be sent.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/class-wp-http-ixr-client.php
Related Hooks
Related hooks will be displayed here in future updates.