How to remove Custom Post Types in WordPress

This example removes the Orbit Custom Post Type from the Cornerstone responsive starter theme. You would include it in the functions.php of your child theme. The example canĀ be adaptedĀ for any Custom Post Type used in any theme.

add_action( 'after_setup_theme','remove_cornerstone_features', 100 );
function remove_cornerstone_features() {
remove_action( 'init', 'Orbit');
view raw functions.php hosted with ❤ by GitHub