Best way to skip wpautop on template
-
I have a complex notification template that I want to use, and I would like to be sure that line breaks in the template don’t get turned into
<br>
and<p>
tags. The function that does this iswpautop()
.There are plugins out there that skip
wpautop()
when rendering posts, but this plugin processes all templates with it inES_Common::es_process_template_body()
.Commenting out that one line does the trick, but I imagine I’m not the only one who would like to write the template with precision.
1. Would this be a welcome addition?
2. Would you rather this be handled in the general settings or per-campaign?
- The topic ‘Best way to skip wpautop on template’ is closed to new replies.