Opened 12 years ago
Closed 9 years ago
#18653 closed enhancement (worksforme)
Enhancement: Filter Taxonomy Show UI in post editor (edit-form-advanced.php)
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
I am working on a project that maintains a "hidden" taxonomy. I want to expose the taxonomy selectively on various custom post types.
The attached patch filters a taxonomy's show_ui value before deciding to create a meta_box. The filter also passes the taxonomy object as well as the current post type.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
You could simply selectively set show_ui when registering the post type on each pageload. Then you can check the $current_screen object to see what page you're on.