• Resolved Garrett Hyder

    (@garrett-eclipse)


    Hi Michael,

    I think my feature request from this ticket got lost;
    https://www.ads-software.com/support/topic/show-ui-setting-trumping-the-show-in-menu-setting/

    Was simply to introduce a true/false setting for meta_box_cb so I don’t have to use this filter on every site;

    // Hide the Staff Type Taxonomy metabox
    function hide_taxonomy_metabox( $args, $taxonomy_name, $taxonomy ) {
        if ( in_array( $taxonomy_name, array( 'staff_type' ) ) ) {
            $args['meta_box_cb'] = false;
        }
        return $args;
    }
    add_filter( 'cptui_pre_register_taxonomy', 'hide_taxonomy_metabox', 10, 3 );

    Specifically, this is so you can disable the metabox but leave the menu, which is nice when you want to use the ACF taxonomy field in replacement of the metabox.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request’ is closed to new replies.