Last active
August 29, 2015 14:26
-
-
Save designbuildtest/b243e74bf6049e7d0f13 to your computer and use it in GitHub Desktop.
WordPress remove POST and PAGE type (feature) support
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
| function dbt_remove_post_type_support() { | |
| remove_post_type_support( 'post', 'custom-fields' ); // 'page' also a valid value | |
| remove_post_type_support( 'post', 'comments' ); // 'page' and 'attachment' also valid values | |
| remove_post_type_support( 'post', 'trackbacks' ); | |
| } | |
| add_action( 'init', 'dbt_remove_post_type_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment