Skip to content

Instantly share code, notes, and snippets.

@rachelbaker
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachelbaker/699fdd8e1a8e75383afb to your computer and use it in GitHub Desktop.
Save rachelbaker/699fdd8e1a8e75383afb to your computer and use it in GitHub Desktop.
function sm_custom_html_tags() {
global $allowedposttags;
$allowedposttags['iframe'] = array(
'src' => true,
'width' => true,
'height' => true,
'frameborder' => true,
'webkitallowfullscreen' => true,
'mozallowfullscreen' => true,
'allowfullscreen' => true,
);
}
add_action( 'init', 'sm_custom_html_tags', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment