Created
November 17, 2013 05:51
-
-
Save joemcgill/7509814 to your computer and use it in GitHub Desktop.
Remove a custom post type from a parent theme in WordPress.
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
add_action('after_setup_theme', 'wp_kill_parent_post'); | |
function wp_kill_parent_post() { | |
remove_action('init', '<% parent post name %>'); | |
} | |
// Register your own version in place of the parent post type if you want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment