Opened 12 years ago
Closed 12 years ago
#28498 closed feature request (wontfix)
Need a filter in the WP_Terms_List_Table class
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.0 |
| Component: | Administration | Keywords: | 2nd-opinion |
| Focuses: | administration | Cc: |
Description
I current am in dire need of a filter in the WP_Terms_List_Table Class. The function i need a filter in is column_name.
I need to be able to adjust the URL here. I've made an adjustment to the core and I've got this at line 291 right now:
/* EXTENDING THE CORE HERE - THIS SUCKS FOR UPDATES
@todo: Find another way to implement this
@core @extension*/
$name_link = apply_filters ("{$taxonomy}_name_url", $edit_link);
$out = '<strong><a class="row-title" href="' . $name_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />';
/* END OF EXTENSION */
Would be awesome if this could be implemented in the next release!
Change History (3)
Note: See
TracTickets for help on using
tickets.
This looks like something that shouldn't be filterable, in my opinion. The term name in the terms list table should always link to the page for editing the term. I don't see any real use cases for this, could you name your own use case and perhaps a few others?
If you need a column where the title links to another type of page, I would prefer people adding a custom column and removing the default one via the
manage_edit-{taxonomy}_columnsfilter.By the way, @rudidraad, welcome :-)!