[wp-trac] [WordPress Trac] #36956: Trigger event when taxonomy term is added with ajax
WordPress Trac
noreply at wordpress.org
Thu May 26 22:33:30 UTC 2016
#36956: Trigger event when taxonomy term is added with ajax
-----------------------------+-------------------------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords: needs-patch 2nd-opinion
Focuses: administration |
-----------------------------+-------------------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36956>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list