Filters the comment author's IP address before it is set.
$commentdata['comment_author_IP']
Sortie :
@param string $comment_author_ip The comment author's IP address.
// Modifier la valeur avec le filtre 'pre_comment_user_ip'
add_filter('pre_comment_user_ip', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($commentdata['comment_author_IP']) {
// Modifier la valeur
return $commentdata['comment_author_IP'];
}
Chargement des actualités...