wp_anonymize_comment

FILTER wp-includes\comment.php (ligne 4022) github
Filters whether to anonymize the comment.

Paramètres

Entrée :
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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...