[wp-trac] [WordPress Trac] #26948: Filter taxonomies available in quick edit
WordPress Trac
noreply at wordpress.org
Mon Jan 27 14:38:18 UTC 2014
#26948: Filter taxonomies available in quick edit
-----------------------------+------------------------------
Reporter: hlashbrooke | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Quick/Bulk Edit | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui
-----------------------------+------------------------------
Comment (by hlashbrooke):
I agree that the whole thing needs some general love for sure, so if this
patch doesn't fit into the bigger picture for quick edit then I'm happy to
drop it.
My original idea was to filter the taxonomy array, but each element of the
array is an object, which meant the filter received an array of taxonomy
objects making it slightly more complicated to filter. It just seemed
easier to use the plain taxonomy name as one of the filter parameters
(which meant doing it inside the foreach) as this means the filter
function can be a simple conditional that returns true/false. If you can
improve on this then that would be sweet though.
Adding a `'quick_edit' => true` type of argument to `register_taxonmy()`
might be a better option - I had considered that, but thought of going for
a less intrusive approach for the first pass.
I'm open to any thoughts/suggestions :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26948#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list