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.
$_COOKIE[ 'comment_author_email_' . COOKIEHASH ]
Sortie :
@param string $author_email_cookie The comment author email cookie.
// 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 ];
}
Chargement des actualités...