-
-
Save kjohnson/b6144793adc0ccca00ff to your computer and use it in GitHub Desktop.
CONNECTING THE DOTS WITH WP_AJAX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var data = { | |
action: 'my_action', | |
} | |
jQuery.post( ajaxurl, data, function(response){ | |
alert('The server responded: ' + response.message); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment