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('supstr-process-signup', 'bnfs_webhook_process_signup', 10, 1); | |
function bnfs_webhook_process_signup($atts) { | |
$webhook_url = 'https://zapier.com/hooks/catch/1170913/2pv4l9/'; | |
$args = array( | |
'method' => 'POST', | |
'timeout' => 30, | |
'redirection' => 5, | |
'httpversion' => '1.1', | |
'blocking' => true, | |
'headers' => array(), | |
'body' => json_encode($atts), | |
'cookies' => array(), | |
'sslverify' => true, | |
); | |
$res = wp_remote_post($webhook_url, $args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment