https://github.com/WebDevStudios/custom-post-type-ui/issues/518
If you want, I can help you filter it in via code until I can get it in a proper release here on ww.wp.xz.cn
Thanks for pointing out the fact that I was missing it.
Well, we can either do that, or just add it via the submenu functions.
Just throwing out suggestions to improve the plugin π
I’m good for now … I’ll watch the github π
I won’t deny not having 100% coverage for the parameters at the moment. However, if it’s something simple like a boolean parameter as one of the arguments, I have zero issue adding it in. Going the add_submenu() route sounds like more work than needed in my opinion π
We have this https://github.com/WebDevStudios/custom-post-type-ui/blob/master/custom-post-type-ui.php#L512-L522 with the $args array matching up as what would be passed into register_taxonomy(). Just add a filter, pass in the boolean value you want for show_in_menu etc, and return.
Great work Michael. Resolved this topic.
While we are at it, can we also include the “meta_box_cb”? I need to:
1. Disable the taxonomy meta box in editor (Using ACF5 to force only 1 category selection)
2. Show taxonomy ui in admin navigation bar
If those are both part of register_taxonomy() args, then they can be added via the filter above as well. Not always sure I want to do the metabox paramsm, and others, because in part, we’re meant to be a simple, easy to use plugin, and hopefully not overwhelm users. That would come at the sacrifice of not gaining 100% coverage. To compensate that, I am more than happy to provide filters wherever possible.
Perfect, that worked! Very impressed.
π
Everything from the “Arguments” area of https://codex.ww.wp.xz.cn/Function_Reference/register_taxonomy can be mapped to the $args filter param, same thing with the Post Types, those have an equivalent filter and $args argument.
I think I know why show in menu shouldn’t be added.
https://core.trac.ww.wp.xz.cn/ticket/20930
Both from issue 518 above are boolean only, so I’m not worried about adding those.
We’ll leave it at that for the time being π