Skip to content

Instantly share code, notes, and snippets.

@adamcapriola
Created January 27, 2019 21:28
Show Gist options
  • Save adamcapriola/a26c630d74a9a7399223f435abf28f35 to your computer and use it in GitHub Desktop.
Save adamcapriola/a26c630d74a9a7399223f435abf28f35 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function(e) {
e.ajax({
method: "POST",
url: save_views.ajax_url,
data: {
post_id: save_views.post_id,
nonce: save_views.nonce,
action: "save_views"
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment