wphooks.info - wp_http_ixr_client_headers

wp_http_ixr_client_headers

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-http-ixr-client.php:
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
			$args['headers'][ $header ] = $value;
		}

		/**
		 * 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.
		 */
		$args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] );

		if ( $this->timeout !== false ) {
			$args['timeout'] = $this->timeout;
		}

		// Now send the request
		if ( $this->debug ) {
			echo '<pre class="ixr_request">' . htmlspecialchars( $xml ) . "\n</pre>\n\n";
		}