Wp_editor add <p>

I’m making a form with wp_editor. So I make that the Wp_editor is required in filling a form. But unfortunetly, Wp_editor adds themself a paragraph < p>. So how to disable this? I try to add

$settings = array(
        'wpautop' => false,
    );

But nothing change. Also I comment this line in default-filters.php

Read More
add_filter( 'the_content', 'wpautop'            );

But nothing change again.

Regards,

Related posts

1 comment

  1. This is right in the Codex. You need to remove the filter completely:

    remove_filter( 'the_content', 'wpautop' );
    

    Since wpautop is enabled by default, commenting out the line won’t do anything for you.

Comments are closed.