Opened 4 months ago
Last modified 3 months ago
#23378 new enhancement
wp_(insert|update)_term() should accept term slug as 'parent' argument
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
For those programmatically using wp_insert_term() and wp_update_term(), it would be great if the 'parent' argument could be a term_id or term slug.
Attachments (3)
Change History (5)
danielbachhuber — 4 months ago
comment:1
danielbachhuber — 3 months ago
We discussed this at dinner the other night and realized where it would break is when the term name (and slug) is an ID.
If this enhancement was of general interest, it would probably be better to go with a new parent_slug argument or similar.
Note: See
TracTickets for help on using
tickets.

Added unit tests for wp_(update|insert)_term with parent