wp_http_ixr_client_headers

FILTER wp-includes\class-wp-http-ixr-client.php (ligne 81) github
Filters the headers collection to be sent to the XML-RPC server.

Paramètres

Entrée :
$args['headers']
Sortie :
@param string[] $headers Associative array of headers to be sent.

Utilisation

// Modifier la valeur avec le filtre 'wp_http_ixr_client_headers'
add_filter('wp_http_ixr_client_headers', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($args['headers']) {
    // Modifier la valeur
    return $args['headers'];
}

Actualités

Chargement des actualités...