A simple plugin-in that deactivates the visual editor for a specific page or post by a custom field set by the author.
The visual editor is nice when pages and posts are simple, but when you try to add special text such as php code to a page then the visual editor oftentimes has to be deactivated to edit the page. This plug-in allows you to set which posts should not use the visual editor by setting a custom field ‘deactivate_visual_editor’ to true. This allows the visual editor to be deactivated for the given post/page, but remain active for all others.
deactivate_visual_editor.php
to the /wp-content/plugins/
directoryOn the edit page or post form create a custom field ‘deactivate_visual_editor’ and type ‘true’ as the value.