Skip to content

Instantly share code, notes, and snippets.

@alana-mullen
Created August 9, 2013 22:28
Show Gist options
  • Save alana-mullen/6197831 to your computer and use it in GitHub Desktop.
Save alana-mullen/6197831 to your computer and use it in GitHub Desktop.
Removing Custom Post Types in WordPress. This example removes the Orbit Custom Post Type from the Cornerstone WordPress starter theme. You would include it the functions.php of your child theme.
<?php
add_action( 'after_setup_theme','remove_cornerstone_features', 100 );
function remove_cornerstone_features() {
remove_action( 'init', 'Orbit');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment