x_redirect_by

FILTER wp-includes\pluggable.php (ligne 1529) github
Filters the X-Redirect-By header. Allows applications to identify themselves when they're doing a redirect.

Paramètres

Entrée :
$x_redirect_by, $status, $location
Sortie :
@param string|false $x_redirect_by The application doing the redirect or false to omit the header.
@param int          $status        Status code to use.
@param string       $location      The path to redirect to.

Utilisation

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

function ma_fonction_filtre($x_redirect_by) {
    // Modifier la valeur
    return $x_redirect_by;
}

Actualités

Chargement des actualités...