I have loaded WP visual editor in comments using wp_editor function and I want to customize the height and buttons of the editor, also it would be much better to show Text mode/tab only and disable the Visual mode/tab.

Here my code:

    $settings = array(
                      false,        // wpautop
                      false,        // media_buttons
                      'comment',    // textarea_name
                      5,            // textarea_rows
                      'None',       // tabindex
                      'None',       // editor_css
                      'test',       // editor_class
                      true,         // teeny
                      true,         // tinymce
                      true          // quicktags

<?php wp_editor( 'Enter your comments here', get_the_ID(), $settings); ?> 


1 Answer 1


OK, I found the solutions, anyone else can benefit from it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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