Created
February 18, 2015 10:46
-
-
Save vishalbasnet23/d53ba515363cfc02cfe7 to your computer and use it in GitHub Desktop.
Call Ajax on Successful Facebook Share.
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 | |
| add_action('wp_ajax_facebook_share', 'facebook_share', 0); | |
| add_action('wp_ajax_nopriv_facebook_share', 'facebook_share'); | |
| function facebook_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