Last active
April 22, 2018 19:09
-
-
Save hawkidoki/781691a9f9dc01f1dd1b9a7ad492c7dc to your computer and use it in GitHub Desktop.
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
$.ajax({ | |
url: 'ajax.php', // WP root install file: ajax.php | |
data: { | |
action: 'my_action', | |
variable: 'my_variable' | |
}, | |
type: 'post', | |
success: function(response){ | |
console.log(response); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment