Support » Plugin: Advanced Custom Fields: Extended » Hide Native Meta Box for a taxonomy

  • Resolved DavidGMiles

    (@davidgmiles)


    I need to be able to set show_ui to true, set show_in_menu to true and set meta_box_cb to false – I can see the options for the first two – is the third one included – if not, could it be?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author hwk-fr

    (@hwk-fr)

    Hello,

    Thanks for the report. In fact, I forgot to implement this setting in the Dynamic Taxonomy module. I will add it in the next patch (0.8). It’s not quite ready yet, in the meantime here is a code you add in your functions.php file:

    
    add_filter('register_taxonomy_args', 'acfe_my_taxonomy_args', 10, 3);
    function acfe_my_taxonomy_args($args, $taxonomy, $object_type){
    
        // Target my-taxonomy
        if($taxonomy !== 'my-taxonomy')
            return $args;
    
        $args['meta_box_cb'] = false;
    
        return $args;
        
    }
    

    In this example, the taxonomy my-taxonomy is being targeted. I will let you know as soon as the patch is up with the fix 🙂

    Sorry for the inconvenience.

    Regards.

    Thread Starter DavidGMiles

    (@davidgmiles)

    Awesome – thanks

    Plugin Author hwk-fr

    (@hwk-fr)

    Hello,

    Just to let you know that the latest ACF Extended 0.8 now includes this option in the Dynamic Taxonomy UI 🙂

    Have a nice day!

    Regards.

    Thread Starter DavidGMiles

    (@davidgmiles)

    Perfect

    Thread Starter DavidGMiles

    (@davidgmiles)

    Which page is it on in the admin – I must be going blind

    Plugin Author hwk-fr

    (@hwk-fr)

    Hello,

    In Tools > Taxonomies, choose your taxonomy. In the main “General” tab, scroll down to “Meta box callback”. See screenshot: https://i.imgur.com/PWvsxFR.png

    Regards.

    Thread Starter DavidGMiles

    (@davidgmiles)

    Awesome – I should have just played with the settings, I thought it was that but wasn’t sure – page looks lovely and neat now

    Plugin Author hwk-fr

    (@hwk-fr)

    Awesome!

    By the way, if you enjoy this plugin, feel free to add a review, it always helps 🙂

    Have a nice day!

    Regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide Native Meta Box for a taxonomy’ is closed to new replies.