Created
August 9, 2013 22:28
-
-
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.
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( '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