Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hook into the WordPress widget save javascript callback
jQuery(document).ajaxSuccess(function(e, xhr, settings) {
var widget_id_base = 'mywidget';
if('action=save-widget') != -1 &&'id_base=' + widget_id_base) != -1) {
// do other stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment