Created
June 8, 2018 08:55
-
-
Save thierrypigot/2f37c6ed107a8ff329431c0589e8aac9 to your computer and use it in GitHub Desktop.
WordPress : Unregister custom post type (CPT)
This file contains 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
<?php | |
add_action('init','waw_unregister_post_type'); | |
function waw_unregister_post_type(){ | |
unregister_post_type( 'bunch_services' ); | |
unregister_post_type( 'bunch_cases' ); | |
unregister_post_type( 'bunch_team' ); | |
unregister_post_type( 'bunch_testimonials' ); | |
unregister_post_type( 'bunch_faqs' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment