Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote -1 down vote accepted

http://core.trac.wordpress.org/ticket/14818

share|improve this answer
    
Andrew, can you make your response a community wiki so I can clarify what's going on? –  Daniel Bachhuber Sep 9 '10 at 14:55
add comment

Hook int force_filtered_html_on_import and return FALSE. See ticket #14818.

add_filter( 'force_filtered_html_on_import' , '__return_false' );

By default this is set to TRUE in wp-includes/ms-default-filters.php.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.