Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Last active December 14, 2015 12:08
Show Gist options
  • Save bhubbard/5083741 to your computer and use it in GitHub Desktop.
Save bhubbard/5083741 to your computer and use it in GitHub Desktop.
Hide ReWebApp Custom Post Types
<?php
################################################################################
// Hide ReWebApp Custom Post Types
################################################################################
function remove_rewebapp_menu_links() {
// Uncomment any post type you wish to hide
// remove_menu_page( 'edit.php?post_type=properties' );
// remove_menu_page( 'edit.php?post_type=neighborhoods' );
// remove_menu_page( 'edit.php?post_type=agents' );
// remove_menu_page( 'edit.php?post_type=resources' );
// remove_menu_page( 'edit.php?post_type=testimonials' );
}
add_action( 'admin_menu', 'remove_rewebapp_menu_links', 9999 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment