Filters whether to anonymize the comment.
true, $comment, $anonymized_comment
Sortie :
@param bool|string $anon_message Whether to apply the comment anonymization (bool) or a custom @param WP_Comment $comment WP_Comment object. @param array $anonymized_comment Anonymized comment data.
// Modifier la valeur avec le filtre 'wp_anonymize_comment'
add_filter('wp_anonymize_comment', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...