A number of the sites I’m migrating to a WordPress Multisite instance have embedded videos and iframes within posts. Rather than convert each post to the kosher way of doing video embeds, I’d rather disable the WordPress functionality which strips out the embeds on import. Disabling the stripping when editing a post was as simple as disabling the kses filter.
Unfortunately, I can’t figure out what I need to disable for importing posts. At the moment I suspect the wp_insert_post() method but haven’t narrowed down the filter. Any ideas?
Update: This is specific to WordPress Multisite. Importing into a single WordPress site works just fine.
Hook int
force_filtered_html_on_import
and returnFALSE
. See ticket #14818.By default this is set to
TRUE
inwp-includes/ms-default-filters.php
.