'wpforms', 'label' => 'WPForms', 'itemName' => __('On submit of form'), 'help' => __('If the visitor submits this form it will add a point to the tested variant.') ] ); return $types; } public function catchFormSubmits($fields, $entry, $form) { $formId = $form['id']; $abTestTracking = new ABTestTracking(); $abTestTracking->trackPostId($formId, 'wpforms'); } }