pre_comment_author_email

FILTER wp-includes\comment.php (ligne 649) github
Filters the comment author's email cookie before it is set. When this filter hook is evaluated in wp_filter_comment(), the comment author's email string is passed.

Paramètres

Entrée :
$_COOKIE[ 'comment_author_email_' . COOKIEHASH ]
Sortie :
@param string $author_email_cookie The comment author email cookie.

Utilisation

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

function ma_fonction_filtre($_COOKIE[ 'comment_author_email_' . COOKIEHASH ]) {
    // Modifier la valeur
    return $_COOKIE[ 'comment_author_email_' . COOKIEHASH ];
}

Actualités

Chargement des actualités...