Skip to content

Instantly share code, notes, and snippets.

@simongcc
Last active January 2, 2016 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simongcc/8294126 to your computer and use it in GitHub Desktop.
Save simongcc/8294126 to your computer and use it in GitHub Desktop.
Remove edit field in post edit page in Wordpress
/*
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