Skip to content

Instantly share code, notes, and snippets.

View tkintscher's full-sized avatar

Thomas Kintscher tkintscher

  • flowciety GmbH
  • Germany
View GitHub Profile
/**
* Function to Send Bricks Form Data to Webhook
*/
function pro_bricks_form_to_webhook( $form ){
$data = $form->get_fields();
// The Bricks Form ID is the last part of the CSS ID
// So if a form has a CSS ID of bricks-element-fszxsr, then the form ID is fszxsr
$formId = $data['formId'];