Skip to content

Instantly share code, notes, and snippets.

@mjangda
mjangda / autosaver.js
Created March 3, 2010 05:42
How to hook into and pass your plugin data though WordPress Autosave
// Must be in an external file or loaded at the end of wp_footer()
jQuery(document).ajaxSend(function(e, x, a) {
var awesome = 1;
a.data += '&' + jQuery.param( {is_awesome: awesome} );
});