Advertisement
geminilabs

Untitled

Jun 21st, 2021
1,280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement