• Hello

    I am using Woocommerce 3.1.1

    I do not want to have the names of people who leave reviews visible on the site.

    I am wanting to omit the names of reviews of products left on the site.

    It is my understanding that reviews are part of the Woocommerce plugin

    How can I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this code:

    add_filter( 'comment_author', 'custom_author' );
    function custom_author() {
      return 'Published ';
    }

    The code goes in functions.php for your child theme. If you don’t have a child theme, you can use the “My Custom Functions” plugin.

    The result will be:
    Published - 07/08/2017

    The effect will also apply to blog posts.

    Thread Starter jbib

    (@jbib)

    So basically I did some trial and error before trying the above code. I tried to enter a review without entering a name and email address. It won’t allow that. Does your code eliminate the need for email address entry?

    No, the code just hides the name and email. You should be able to see the name and email the dashboard and that will help you decide if a review is genuine.

    To eliminate the need for name and email entry, go to Dashboard > Settings > Discussion and uncheck “Comment author must fill out name and email”. A review is just a type of comment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Delete Author of A review’ is closed to new replies.