Opened 14 years ago
Closed 10 years ago
#22293 closed enhancement (fixed)
New filter for wp_update_term and wp_insert_term
| Reported by: | baernty | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch 4.7-early |
| Cc: | Focuses: |
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
@
14 years ago
create_term or edit_term actions can be used to update the slug right after the term is created or updated.
#7
@
10 years ago
- Summary New Filter for wp_update_term → New filter for wp_update_term and wp_insert_term
#8
@
10 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
@
10 years ago
- Keywords 4.6-early added
- Milestone Awaiting Review → Future Release
- Owner set to
- Status new → reviewing
#10
@
10 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
and of course, also for a new term in wp_insert_term
THANKS!