Created
February 18, 2015 10:53
-
-
Save vishalbasnet23/bdd286c3e46c3a81dd4b to your computer and use it in GitHub Desktop.
Ajax Call On Successful Twitter Share
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
<?php | |
add_action('wp_ajax_twitter_share', 'twitter_share', 0); | |
add_action('wp_ajax_nopriv_twitter_share', 'twitter_share'); | |
function twitter_share() { | |
$your_data = $_POST['your_data']; | |
echo $your_data; | |
die; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment