Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created June 13, 2012 14:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/2924238 to your computer and use it in GitHub Desktop.
Save billerickson/2924238 to your computer and use it in GitHub Desktop.
<?php
add_action('gform_after_submission', 'post_to_third_party', 10, 2);
function post_to_third_party($entry, $form) {
$post_url = 'http://forms.franklin.edu/newsletter-registration/Register';
$body = array(
'fullName' => $entry['1.1'],
'email' => $entry['1.2']
);
$request = new WP_Http();
$response = $request->post($post_url, array('body' => $body));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment