Created
February 27, 2017 16:15
-
-
Save anthonybudd/af616268d661c088fd0bce61f2bed740 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php //functions.php | |
add_action("wp_ajax_example", "exampleAJAX"); | |
add_action("wp_ajax_nopriv_example", "exampleAJAX"); | |
function exampleAJAX(){ | |
echo "Success!"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment