This filter does not. This feature is disabled in the visual editor TinyMCE.
function wpse49619_change_mce_options($initArray) {
$ext="iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src]";
if ( isset( $initArray['extended_valid_elements'] ) ) {
$initArray['extended_valid_elements'] .= ',' . $ext;
} else {
$initArray['extended_valid_elements'] = $ext;
}
// maybe; set tiny paramter verify_html
//$initArray['verify_html'] = false;
return $initArray;
}
add_filter('tiny_mce_before_init', 'wpse49619_change_mce_options');
Also you can use examples from WPEngineer how to enhancement TinyMCE.
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- How to use “Add link” pop up for a WordPress widget
- Apply the_title() filter in post & page title, but not in menu title
- Update post counts (published, draft, unattached) in admin interface
- Removing any and all inline styles from the_content()
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Modify links when inserted by WYSIWYG editor
- Get old values for post before saving new ones
- How does filter the_posts work?
- How to publish a post with empty title and empty content?
- How to add a “publish” link to the quick actions
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- How can I filter Microsoft Word gunk from pasted content?
- Why is wordpress removing some unicode characters (e.g. some emojis) when I save my post?
- Change padding to text indent in “Increase indent” TinyMCE
- how to display post content without post image?
- How to add a custom button to the tinyMCE toolbar?
- Exclude category on blog list page
- Filter posts by author and category simultaneously
- Filter post before *editing*
- Filter/Remove HTML Elements on all posts and pages
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- How do I add a listbox to the TinyMCE editor?
- If specific user role then sticky post
- Link button is not working while editing a post in Firefox [closed]
- Getting post id from wp_insert_post_data function?
- the_posts filter been called multiple time
- Filter Posts By Tag
- Custom excerpt length filter doesn’t work
- How can i do something after head like adding a hook for after head but before post
- Only display posts after current date
- Amend wordpress password function
- Custom Post Templates
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How can I remove posts of a certain category from homepage after a specified time period?
- How to generate numbers indistinguishable for the IDs of the posts
- Modify WP_Post before processing
- How to filter posts that belong to a specific category only if that is the only category
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Exists filter or action that change Add New Post link?
- Tiny MCE custom styles, and preview in the backend
- changing parent_id on post
- wp_list_categories() Exclude All Categories Except One
- Keyboard shortcut for headings on safari
- Get current taxonomy and display query accordingly
- Trying to exclude custom posts based on date, while sorting by custom field
- How to add future Posts to the new “Internal Linking” Feature
- can’t modify post title using the_posts filter
- Show only posts with titles/permalinks that do not contain certain words
- How do I display main query posts in random order using add_filter
- Rewrite image links from attachment id to attachment link
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing
- Order buttons added to TinyMCE
- ‘QTags.addButton: arg2 distorts the button rather than just shows
- Using AJAX to filter posts without refreshing page
- Filter posts by month (dropdown)
- Restricting displayed posts to posts from only select authors
- WordPress 5: prevent link from displaying page title instead of URL
- the wp_post_update isn’t working all the time
- Display/Filter post using if else statement
- How to add a custom class attribute into code wrapper? [duplicate]
- Filtering private Posts
- how to filter posts by category without page load (ajax) in wordpress?
- Remove status ‘archived’ from the default post and page view
- Dropdown Select Post Filter
- long-title posts do not want published
- How to add a block to a category page?
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- How do i search post by jquery datepicker?
- Add id attribute to h1 element of wordpress post
- show only one category and filter by tag
- Prevent WordPress from putting around specific element
- filter buddypress users posts by user ‘xprofile’ custom fields
- Override wp_link_pages pagebreak with filter
- How do I change the post title’s link on the posts page?
- How to create frontend Post filter using meta query
- Printable Page with all Posts from Tag
- How to test if user is filtering post list in dashboard
- Hide Admin posts & pages in Dashboard
- Is it possible to completely replace a post with an action/filter?
- Extracting a TLD from the content and assign to custom field
- How to get the postID inside ‘content_save_pre’? Other hook?
- Filter question list on substring of metavalue
- Add review box by function at top or bottom of content
- Get results from the main wp_query
- How to modify specific parts of a post content in WordPress
- Keep post format class with isotope filter
- Custom filter on all post page (admin backend)
- How to use in_category?
- How to use wp_editor(); in functions.php then retrieve content in the template
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- the_content() not displaying the full post
- wp_query posts sorting doesn’t work
- Add custom PHP (no-SQL) filter to WP_query
- Filters do not work when there are multiple (one works)
- How can I change the post order after filtering in WordPress?
- Modify upload directory to use post category slug in file path on multisite installation
- Add function to single blog post pages only