Advertisement
borlabs

Block iFrames via admin-ajax.php

Dec 7th, 2022
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2.  
  3. if (is_admin() === true && wp_doing_ajax() === true) {
  4.     add_filter('the_content', function ($content) {
  5.         return BorlabsCookieHelper()->blockIframes($content);
  6.     }, 100, 1);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement