Opened 12 years ago
Closed 8 years ago
#22293 closed enhancement (fixed)
New filter for wp_update_term and wp_insert_term
Reported by: | baernty | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch 4.7-early |
Focuses: | Cc: |
Description
I need a filter for $slug in this function. I want to check if there is a page with the same slug, because i don't use the category base.
Thanks very much.
Attachments (2)
Change History (15)
#3
@
12 years ago
create_term
or edit_term
actions can be used to update the slug right after the term is created or updated.
#7
@
9 years ago
- Summary changed from New Filter for wp_update_term to New filter for wp_update_term and wp_insert_term
#8
@
9 years ago
- Keywords has-patch added; needs-patch removed
22293.diff adds a filter to both wp_insert_term and wp_update_term to filter the slug that will be saved.
#9
@
9 years ago
- Keywords 4.6-early added
- Milestone changed from Awaiting Review to Future Release
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#10
@
8 years ago
- Keywords 4.7-early added; 4.6-early removed
22293.2.diff adds wp_insert_term_data
and wp_update_term_data
filters, which I think would be more useful than a filter just for the slug.
This ticket was mentioned in Slack in #core by helen. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
and of course, also for a new term in wp_insert_term
THANKS!