Created
October 5, 2015 10:55
-
-
Save jbma/7886f6be7b9dfb8a8fec 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 | |
function clear_remote_wp( $ID, $post ) { | |
wp_remote_get('http://defimedia.info/custom-clear.php?id='.$ID); | |
} | |
add_action( 'publish_post', 'clear_remote_wp', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment