Unfortunately due to other commitments, we are no longer able to provide support for these themes.

All our themes are now free and can be downloaded by anyone to use/modify however they wish.

We want to thank all our users for their support over the years. All the best in 2020 and beyond.

Unregister 'themedy_menu_item' custom post type.

sandrasandra Support Expired
edited July 2017 in Brisket
Hello :)

I am using the Brikset theme which comes with a custom post type for food menus.


I am using a different plugin for creating food menus and would like to de-register the built-in food menu to avoid confusion and reduce unnecessary code.

After a bit of research I found this solution and added it to my custom_functions.php file. I must be missing something as the "Menu Items" are still active in the Dashboard sidebar after logging out and logging back in.

if ( ! function_exists( 'unregister_post_type' ) ) :
function unregister_post_type() {
    global $wp_post_types;
    if ( isset( $wp_post_types[ 'themedy_menu_item' ] ) ) {
        unset( $wp_post_types[ 'themedy_menu_item' ] );
        return true;
    return false;

add_action('init', 'unregister_post_type',100);

Thanks for your help,
Post edited by sandra on


  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    Hey Sandra, try this instead:
    function sandra_delete_post_type(){
    	unregister_post_type( 'themedy_menu_item' );
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.

  • Options
    sandrasandra Support Expired
    Perfect - thank you!
This discussion has been closed.