Created
October 10, 2016 16:32
-
-
Save dattard21/f7b86bd8ad4a72e81bf7fa8facbbdae4 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
function publish_post_to_social_media($post_ID) { | |
global $post; | |
// Send a tweet | |
... | |
//Push URL to Facebook page | |
... | |
//Send to Google+ page | |
... | |
} | |
add_action('publish_post', 'publish_post_to_social_media'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment