Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress: ebnale iframe for not administrator
<?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
You can’t perform that action at this time.