I read several articles about configuring the WordPress editor. For example, this snippet shows how to permanently set the editor to HTML or WYSIWYG for all contents.
I’m wondering if it’s possible to disable the WYSIWYG only when the user is creating a page, leaving it enabled for any other WordPress content type.
The best way to do this is by adding ‘user_can_richedit’ filter, like so:
Hope it’s useful 😉
Try this:
Do it like this in your
functions.php
file:Add the following to the post.php file inside the wp-admin directory. This code should go just before the function redirect_post() section.