add_filter ('get_comment_author', 'my_comment_author', 10, 1);
function my_comment_author ($author = '') {
$comment = get_comment ($ comment_ID);
if(! empty ($ comment-> comment_author)) {
if($ comment->user_id> 0) (
$user = get_userdata ($comment-> user_id);
$first_name = substr($user->first_name, 0, 1).str_repeat('*', strlen($user->first_name)-1);
$last_name = substr($user->last_name, 0, 1).str_repeat('*', strlen($user->last_name)-1);
$author = $first_name + ' ' + $last_name;
} else {
$author = __ ('Anonymous');
}
} else {
$author = $comment-> comment_author;
}
return $author;
}Şöyle deneyin, test edenemedim ama çalışması lazım.