Advertisement
geminilabs

Untitled

Jun 21st, 2021
1,027
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('site-reviews/review/build/after', function (array $tags, Review $review) {
  2.     $videoUrl = $review->custom->video_url;
  3.     if (!empty($videoUrl)) {
  4.         $tags['video_url'] = sprintf('<iframe src="%s" frameborder="0" allowfullscreen></iframe>');
  5.     }
  6.     return $tags;
  7. }, 20, 2);
  8.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement