Created
August 30, 2013 15:47
-
-
Save dana-ross/6391213 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
// There should be an "ajaxurl" variable set that you can use instead of hard-coding the url here | |
jQuery.get('/wp-admin/admin-ajax.php', {'action': 'this_sucks', 'postid': '1234'}, function(data, status, jqXHR) { | |
// Display post here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment