Advertisement
geminilabs

[site-reviews] Hide the title if empty

Apr 1st, 2021
906
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('site-reviews/review/wrap/title', function ($value, $rawValue, $tag) {
  2.     if (empty($tag->review->title)) {
  3.         return;
  4.     }
  5.     return $value;
  6. }, 10, 3);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement