Last active
August 23, 2016 14:22
-
-
Save ingozoell/5e9e95ff6dfeadf9e458e75d2ef65f8b to your computer and use it in GitHub Desktop.
Remove WP CPT Child-Theme
http://wordpress.stackexchange.com/questions/3820/deregister-custom-post-types
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
if ( ! function_exists( 'unregister_post_type' ) ) : | |
function unregister_post_type() { | |
global $wp_post_types; | |
if ( isset( $wp_post_types[ 'expose' ] ) ) { | |
unset( $wp_post_types[ 'expose' ] ); | |
return true; | |
} | |
return false; | |
} | |
endif; | |
add_action('init', 'unregister_post_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment