In wordpress, currently I am facing one problem that, when I'm clicking on page edit the editor directly opens in visual tab so, How to directly open page editor in text tab??? Does anyone have a solution for this.

1 Answer 1


Add the following to your themes functions.php file and it will default to the editors text view...

add_filter( 'wp_default_editor', create_function('', 'return "html";') );
  • Thank you but I have added this code into function.php but it is not working.
    – daxter
    May 20, 2014 at 6:54

Your Answer

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

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