Advertisement
majeedraza

WooCommerce - Hide review author's name

Aug 7th, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Hide review author's name  
  3.   // instead of: John Smith - 31/12/2016
  4.   // will show:  Published - 31/12/2016
  5.   add_filter( 'comment_author', 'custom_author' );
  6.   function custom_author() {
  7.     return 'Published ';
  8.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement