×
HIDE

Actions Hook, Filter Hook

Filter Hook Before Submit:

  • apply_filters( ‘piotnetforms/form_builder/fields’, $fields );
  • apply_filters( ‘piotnetforms/form_builder/redirect’, $redirect , $fields);
  • apply_filters( ‘piotnetforms/form_builder/form_settings’, $settings);

Action Hook after submit:

  • do_action(‘piotnetforms/form_builder/new_record’,$fields) .

$fields is an array of fields, e.g

array(
    array(
        ‘label’=>’Email’,
        ‘name’=>’email’,
        ‘value’=>’support@piotnet.com’
    ) ,
    array(
        ‘label’=>’Message’,
        ‘name’=>’message’,
        ‘value’=>’Hello’
    )
)
  • do_action(‘piotnetforms/form_builder/new_record_v2’,$form_submission)
  • do_action(‘piotnetforms/form_builder/payment_status_succeeded’,$form_submission) – After Payment Success

$form_submission is an array, e.g