Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created June 8, 2018 08:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save thierrypigot/2f37c6ed107a8ff329431c0589e8aac9 to your computer and use it in GitHub Desktop.
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