Opened 9 years ago
Last modified 6 years ago
#36956 new enhancement
Trigger event when taxonomy term is added with ajax
Reported by: | johnjamesjacoby | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | 2nd-opinion has-patch |
Focuses: | administration | Cc: |
Description
When adding a taxonomy term via ajax, it would be nice if some JavaScript event was triggered, maybe on .wp-list-table.tags
or the newly added row itself.
This would give taxonomy term plugins some event to listen for and take action on.
Something akin to:
this.trigger( 'term-added' );
Maybe tag-added
is more appropriate, since all of those form elements seem to use tag
for everything, regardless of the taxonomy.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Adds the
term-added
trigger on successful Ajax term add