Since in this case i’m using ACF to define the taxonomies for a custom post type, I wanted to remove the metabox in the sidebar. Luckily, there’s no custom code required for this. We just need to set meta_box_cb
to false.
register_taxonomy("{$this->post_type}-type", $this->post_type, array(
'label' => "{$this->label} Types",
'public' => true,
'show_admin_column' => true,
'hierarchical' => true,
'meta_box_cb' => false,
));
Did you know about show_admin_column
as well? This argument allows you to show or hide the taxonomy column that’s visible on the overview of all (custom) posts!
Leave a Reply