Title: Make visual editor the default
Last modified: December 12, 2023

---

# Make visual editor the default

 *  Resolved [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * (@digbymaass)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/)
 * I don’t know if this is because we’ve updated to php 8 or whether it’s a WP update
   but the text editor has become the default, and keeps switching from the visual
   editor when editing and updating. We are using classic.
   The code often cited 
   as setting the default now gives an error when added to the theme file editor
   as create_function is removed in php 8:
 * `add_filter( 'wp_default_editor', create_function('', 'return "tinymce";'));`
 * Is there a php 8 version of this? (I’m not much use at php!) – or some other 
   solution to set the visual editor as the default?
   Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmake-visual-editor-the-default%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * (@digbymaass)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17278409)
 * Or better still – make the current editor choice the default until the other 
   is chosen.
 *  [Kavya Gokul (a11n)](https://wordpress.org/support/users/properlypurple/)
 * (@properlypurple)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17285604)
 * Hi [@digbymaass](https://wordpress.org/support/users/digbymaass/)! Have you tested
   with all plugins deactivated, and just this one active?
 * If you can install plugins, install and activate “Health Check”: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/).
   It will add some additional features under the menu item under Tools > Site Health.
 * On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable
   all plugins, switch to a standard WordPress theme (if available), allow you to
   turn your plugins on and off and switch between themes, **without affecting normal
   visitors to your site**. This allows you to test for various compatibility issues.
 * There’s a more detailed description about how to use the Health Check plugin 
   and its Troubleshooting Mode at [https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/](https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/)
 *  Thread Starter [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * (@digbymaass)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17288191)
 * I know how to use healthcheck. Unfortunately it doesn’t work very well and usually
   completely disables half the plugins, causing chaos. So I’m reluctant.
 *  [Kavya Gokul (a11n)](https://wordpress.org/support/users/properlypurple/)
 * (@properlypurple)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17291112)
 * Hey [@digbymaass](https://wordpress.org/support/users/digbymaass/)! Health check
   is the best option to test this, but understand that you don’t want to use it.
 * For your code, you can try using this instead:
 *     ```wp-block-code
       add_filter( 'wp_default_editor', function() {return "tinymce";} );
       ```
   
 *  Thread Starter [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * (@digbymaass)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17291270)
 * That works, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Make visual editor the default’ is closed to new replies.

 * ![](https://ps.w.org/classic-editor/assets/icon-256x256.png?rev=1998671)
 * [Classic Editor](https://wordpress.org/plugins/classic-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/classic-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/classic-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/classic-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/classic-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/classic-editor/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [digbymaass](https://wordpress.org/support/users/digbymaass/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/make-visual-editor-the-default/#post-17291270)
 * Status: resolved