wp_http_ixr_client_headers
Filters the headers collection to be sent to the XML-RPC server.
Usage
add_filter( 'wp_http_ixr_client_headers', 'wp_kama_http_ixr_client_headers_filter' );
/**
* Function for `wp_http_ixr_client_headers` filter-hook.
*
* @param string[] $headers Associative array of headers to be sent.
*
* @return string[]
*/
function wp_kama_http_ixr_client_headers_filter( $headers ){
// filter...
return $headers;
}
- $headers(string[])
- Associative array of headers to be sent.
Changelog
| Since 4.4.0 | Introduced. |
Where the hook is called
wp_http_ixr_client_headers
wp-includes/class-wp-http-ixr-client.php 81
$args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] );