Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function after_submission( $entry, $form ) {
- wp_fusion()->crm->object_type = 5; // ID of your custom object type
- $object_data = array(
- 'email' => rgar( $entry, '1' ), // Standard field
- 'f1500' => rgar( $entry, '2' ) // Custom field
- );
- $object_id = wp_fusion()->crm->add_contact( $object_data, false );
- }
- add_action( 'gform_after_submission_1', 'after_submission', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement