Advertisement
borlabs

Shortcode

May 15th, 2018
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. // Aktuell bei dir
  2. $iframe = $wp_embed->run_shortcode('[embed]'.$embed.'[/embed]');
  3.  
  4. // Möglichkeit A
  5. if (class_exists('\BorlabsCookie\Cookie\Frontend\IframeDetection')) {
  6.     $iframe = \BorlabsCookie\Cookie\Frontend->IframeDetection::getInstance()->detect($iframe);
  7. }
  8.  
  9. // Möglichkeit B
  10. $iframe = do_shortcode('[borlabs_cookie_blocked_content title="Dein Embed"] '.$iframe.' [/borlabs_cookie_blocked_content]');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement