Dear Mivtt,
I am enclosing the list of reviews for the product and a comparison between a real review and virtual review (the “real” review is being displayed with a name):
https://pasteboard.co/K8JILbI4.png
https://pasteboard.co/K8JIGkP.png
However, I remembered that I have the following in functions.php:
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);
$author=$user->first_name.' '.substr($user->last_name,0,1).'.';
} else {
$author = __('Anonymous');
}
} else {
$author = $comment->comment_author;
}
return $author;
}
This is to ensure that in case of reviews, only the first name and the initial of the last name is displayed to protect the privacy of buyers (otherwise, the full name would be displayed by default – unless the user changes the display name).
When I commented it out, now the name entered in the virtual reviews is showing.
So I thought – maybe your plugin inputs the whole name as the last name? Is there any possibility to make it compatible?
Thank you.