Created
September 17, 2018 22:16
-
-
Save yayMark/a7e7a3588cc081857c64b577afb356cc to your computer and use it in GitHub Desktop.
WordPress: remove the editor from the top of a post type in wp-admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function post_type_no_editor() { | |
| $post_type = 'insert_post_type_here'; | |
| remove_post_type_support($post_type, 'editor'); | |
| } | |
| add_action('init', 'post_type_no_editor', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment