Skip to content

Instantly share code, notes, and snippets.

@tiberiur
Created August 23, 2016 18:34
Show Gist options
  • Save tiberiur/568cd762576d5663d382be87b3a0fa0d to your computer and use it in GitHub Desktop.
Save tiberiur/568cd762576d5663d382be87b3a0fa0d to your computer and use it in GitHub Desktop.
[Wordpress] Remove Custom Fields support
function post_type_support_init() {
remove_post_type_support('post', 'custom-fields');
remove_post_type_support('page', 'custom-fields');
}
add_action('init', 'post_type_support_init');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment