Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

L//H WPAUTOP Extended

A small extension to the current wpautop function for the occasional need to prevent a certain HTML tags to be wrapped in paragraphs.

This plugin basically just consists of one function, that extends the functionality of WordPress own wpautop function.

On several occasions a theme developer might feel the need, that a certain HTML Tag should not be wrapped in paragraphs. This plugin deactivates the standard wpautop function and replaces it with an extended version of that plugin. Upon activation of this plugin you'll have access to the 'lh_wpautop_block_elements' filter, which gives you the ability to extend, modify and enhance the array of standard elements, which are per default not wrapped in <p> tags.

With that plugin you could place this function into the theme functions.php, Images and Iframes will no longer be wrapped in paragraphs.

function add_block_elements($block_elements){
        $block_elements[] = "iframe";
        $block_elements[] = "img";

        return $block_elements;
add_filter("wpautop_block_elements", add_block_elements);

This Plugin is brought to you by Luehrsen // Heinrich

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.