Call javascript function when category was added via ajax
Recently, I just have the same problem and got the solution. use ajaxSuccess event since we need to reset input when ajax is completed. filter the settings data for specific action and screen. Code: $(document).ajaxSuccess(function(e, request, settings){ var object = $.deparam(settings.data); if(object.action === ‘add-tag’ && object.screen === ‘edit-category’ && object.taxonomy === ‘category’){ //DO RESET Your … Read more