Opened 15 years ago
Closed 13 years ago
#18653 closed enhancement (worksforme)
Enhancement: Filter Taxonomy Show UI in post editor (edit-form-advanced.php)
| Reported by: | transom | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.