Make WordPress Core

Opened 9 years ago

Last modified 6 years ago

#36956 new enhancement

Trigger event when taxonomy term is added with ajax

Reported by: johnjamesjacoby's profile 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)

36956.patch (341 bytes) - added by johnjamesjacoby 8 years ago.
Adds the term-added trigger on successful Ajax term add

Download all attachments as: .zip

Change History (2)

@johnjamesjacoby
8 years ago

Adds the term-added trigger on successful Ajax term add

#1 @johnjamesjacoby
8 years ago

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.