Skip to content

Instantly share code, notes, and snippets.

@h2ospace
Last active July 29, 2017 00:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save h2ospace/db75bf731f2f0fd0b1a8 to your computer and use it in GitHub Desktop.
Save h2ospace/db75bf731f2f0fd0b1a8 to your computer and use it in GitHub Desktop.
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