Enabling Code Editor for Custom Post Types

In case you need to show code editor in the place of normal WordPress editor, where is what you need to do.
Just go to Core -> Settings and create a meta key “opt-editor-settings” and in value add the posts_type list in a comma-separated format.

Alternatively, you can also do the following in the site-specific plugin to enable code editor

 

Updated on Jun 19, 2021