WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#21840 closed enhancement (duplicate)

Add filter for taxonomies shown in quick edit

Reported by: helgatheviking Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords:
Focuses: Cc:

Description

I'd like to propose that there be more options to adjust the default quick edits. For instance, my Radio Buttons for Taxonomies plugin removes the default metabox for taxonomies and replaces it with one that uses radio inputs, which limits the user to a single term choice.

However in the quick edit, this is easily circumvented, because I have no way to remove the taxonomy inputs from being displayed in their default ways.

At the minimum, just adding a filter to the taxonomies would let me disable the default taxonomy inputs and then add my own. More hooks/filters would be ideal, but I think this is the minimum I can get away with.

Sorry it isn't a patch or diff... I'll try to get WordPress set up as a repo on my computer. But in the mean time I'm proposing a change to :

/wp-admin/includes/class-wp-posts-list-table.php file

in the inline_edit() method, for instance, i'd like to change

$taxonomy_names = get_object_taxonomies( $screen->post_type );

to:

$taxonomy_names = apply_filters( 'inline_edit_taxonomies', get_object_taxonomies( $screen->post_type ), $screen->post_type );

Attachments (1)

add filter for taxonomies in quick edit.patch (676 bytes) - added by helgatheviking 8 years ago.
adds a filter for the get_object_taxonomies in inline_edit

Download all attachments as: .zip

Change History (6)

#1 @mordauk
8 years ago

  • Cc pippin@… added

#2 @johnbillion
8 years ago

  • Cc johnbillion added

#3 @SergeyBiryukov
8 years ago

  • Component changed from General to Quick/Bulk Edit

@helgatheviking
8 years ago

adds a filter for the get_object_taxonomies in inline_edit

#4 @stephenh1988
8 years ago

  • Cc contact@… added

#5 @DrewAPicture
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Patches and more discussion can be found on #26948.

Note: See TracTickets for help on using tickets.