• When I post a review, it appears as anonymous, why? I entered a username correctly, but the review appears as anonymous. Can you help me? In my funciotn.php file there is the following function to display only the username for privacy reasons. function my_comment_author( $author = ” ) { // Get the comment ID from WP_Query $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).’.’; // this is the actual line you want to change } else { $author = __(‘Anonymous’); } } else { $author = $comment->comment_author; } return $author; } Could this be the cause and if so how can I resolve it? Thank you

Viewing 1 replies (of 1 total)
  • Plugin Support lavendervu2510

    (@lavendervu2510)

    Hi,

    It seems that you added custom codes in the function file of the plugin, this will not be contained in the support of the plugin. Please attempt to delete this code and then check again. If the problem persists, let us know.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Anonymous Review’ is closed to new replies.