allowed_redirect_hosts

FILTER wp-includes\pluggable.php (ligne 1721) github
Filters the list of allowed hosts to redirect to.

Paramètres

Entrée :
array( $wpp['host']
Sortie :
@param string[] $hosts An array of allowed host names.
@param string   $host  The host name of the redirect destination; empty string if not set.

Utilisation

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

function ma_fonction_filtre(array( $wpp['host']) {
    // Modifier la valeur
    return array( $wpp['host'];
}

Actualités

Chargement des actualités...