Last active
July 29, 2017 00:58
-
-
Save h2ospace/db75bf731f2f0fd0b1a8 to your computer and use it in GitHub Desktop.
WordPress: ebnale iframe for not administrator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function content_save_pre_func($content){ | |
global $allowedposttags; | |
$allowedposttags['iframe'] = array( | |
'class' => array () , | |
'src'= > array() , | |
'width' => array(), | |
'height' => array() , | |
'frameborder' => array() , | |
'scrolling' => array() | |
); | |
return $content; | |
} | |
add_filter('content_save_pre','content_save_pre_func'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment