How to hide the date of review

Hi, I want to hide the date on which the review was provided by the client. It should not be displayed in the review page.

Previously I have edited the functions.php file to change the author field to bold italic by this way; and it is working –

add_filter('site-reviews/review/build/tag/author', function ($field) {
return "---".''.$field.''.PHP_EOL;

So I did the same for the date field –

add_filter('site-reviews/review/build/tag/date', function ($field) {
return PHP_EOL;

But it’s not working!
How can I do the same for the date field?



This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer