Wordpress: Can you query Anonymous comments?
Posted: Tue Apr 03, 2018 6:31 am
We have a commerce site that imported 10,000s of star ratings, and they were added in the Reviews section.
We have decided to see if we can query the review, and if it is Anonymous, which these all are, then to hide the 'author', remove the date (as they are all the same date), and add text to say "Star rating only given".
If reviews have an author, then it will show everything.
I don't know how to even start to accomplish this. ie. is it in single-product.php or review.php. Once would thing it would be a function we need to write, but no idea how to.
We have decided to see if we can query the review, and if it is Anonymous, which these all are, then to hide the 'author', remove the date (as they are all the same date), and add text to say "Star rating only given".
If reviews have an author, then it will show everything.
I don't know how to even start to accomplish this. ie. is it in single-product.php or review.php. Once would thing it would be a function we need to write, but no idea how to.