Skip to content

Action: bricks_sendgrid_double_opt_in_handler

Runs before the SendGrid form action adds a new contact. Use it to trigger a custom double opt-in flow with the subscriber data Bricks collected.

  • $new_subscriber_data (array): Subscriber data prepared for SendGrid, including the email address and optional first or last name.
add_action( 'bricks_sendgrid_double_opt_in_handler', function( $new_subscriber_data ) {
// Send a custom double opt-in email here.
}, 10, 1 );