Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress : Unregister custom post type (CPT)
<?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
You can’t perform that action at this time.