wp_http_ixr_client_headers filter-hookWP 4.4.0

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::query()
wp_http_ixr_client_headers
wp-includes/class-wp-http-ixr-client.php 80
$args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] );

Where the hook is used in WordPress

Usage not found.