Creating a new contact record

You can create new \Groundhogg\Contact objects on the fly by passing in an array of parameters. Duplicates will be avoided.

$first_name = $_POst[ 'first' ];
$email = $_POST[ 'email' ];

$contact = new \Groundhogg\Contact( [
    'first_name' => $first_name,
    'email'      => $email,
] );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us