Last active
January 2, 2016 11:08
-
-
Save simongcc/8294126 to your computer and use it in GitHub Desktop.
Remove edit field in post edit page in Wordpress
This file contains 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
/* | |
Purpose: Remove edit field in post edit page, example is "title" and "editor" | |
Version Tested: 3.8 | |
Original Reference: | |
http://wordpress.org/support/topic/remove-title-and-edit-box-from-edit-post-screen?replies=6 | |
*/ | |
function wp_remove_input_field() | |
{ | |
remove_post_type_support('post', 'title'); | |
remove_post_type_support('post', 'editor'); | |
} | |
add_action("admin_init", "wp_remove_input_field"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment