Advertisement
geminilabs

[site-reviews] Hide the title if empty

Apr 1st, 2021 (edited)
1,313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. add_filter('site-reviews/review/value/title', function ($value, $tag) {
  2.     if (empty($tag->review->title)) {
  3.         return '';
  4.     }
  5.     return $value;
  6. }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement