Disable block with taxonomies at post page

I am developing an events manager for WordPress.

I have post_type = ‘event’ and taxonomy ‘event_place’

Read More

And I want delete block with taxonomy select in post page, because user can do it at custom metabox.

enter image description here

Related posts

Leave a Reply

1 comment

  1. Use remove_meta_box

    remove_meta_box( 'categorydiv', 'post-type-name', 'side' ); 
    

    And hook it to ‘admin_menu’ as in the Codex.

    function my_remove_cat_box() {
         remove_meta_box( 'categorydiv', 'post-type-name', 'side' ); 
    }
    add_action( 'admin_menu', 'my_remove_meta_boxes' );
    

    I am guessing a little at the first parameter–‘categorydiv’–, but that is what it looks like based on your screen shot.