0

I've got a desktop app that generates html for my customers to paste into their WP pages/posts. Nothing fancy just some image tags, hyperlinks and simple inline css.

How do I preformat that code so wpautop won't try to re-format? What triggers that function to add br and p tags? Are there any other tags it will insert?

0

The function that does what I think you are referring to is wpautop(), probably the most complained about function is all of WordPress-dom. It is a filter on the the_content hook among others. You can remove that with:

remove_filter('the_content','wpautop');

I would suggest that you spend some time looking through the many related questions to see what you are getting yourself into.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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