Example phpdoc MD
[TOC]
<?php
do_action( "forminator_custom_form_before_handle_submit", $form_id );
Action called before full form submit
| Name | Type | Description |
|---|---|---|
| $form_id | (int) | - the form id |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_before_handle_submit( $form_id ){
// do some action.
}
add_action( "forminator_custom_form_before_handle_submit", "add_action_forminator_custom_form_before_handle_submit" );
<?php
do_action( "forminator_custom_form_after_handle_submit", $form_id, $response );
Action called after full form submit
| Name | Type | Description |
|---|---|---|
| $form_id | (int) | - the form id |
| $response | (array) | - the post response |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_after_handle_submit( $form_id, $response ){
// do some action.
}
add_action( "forminator_custom_form_after_handle_submit", "add_action_forminator_custom_form_after_handle_submit" );
<?php
do_action( "forminator_custom_form_before_save_entry", $form_id, 'submit' );
Action called before form ajax
| Name | Type | Description |
|---|---|---|
| $form_id | (int) | - the form id |
| 'submit' | - | - |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_before_save_entry( $form_id, $submit ){
// do some action.
}
add_action( "forminator_custom_form_before_save_entry", "add_action_forminator_custom_form_before_save_entry" );
<?php
do_action( "forminator_custom_form_after_save_entry", $form_id, $response, 'submit' );
Action called after form ajax
| Name | Type | Description |
|---|---|---|
| $form_id | (int) | - the form id |
| $response | (array) | - the post response |
| 'submit' | - | - |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_after_save_entry( $form_id, $response, $submit ){
// do some action.
}
add_action( "forminator_custom_form_after_save_entry", "add_action_forminator_custom_form_after_save_entry" );
<?php
do_action( "forminator_custom_form_before_save_entry", $payment_id, 'payment' );
Action called before form payment
| Name | Type | Description |
|---|---|---|
| $payment_id | (int) | - the payment id |
| 'payment' | - | - |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_before_save_entry( $payment_id, $payment ){
// do some action.
}
add_action( "forminator_custom_form_before_save_entry", "add_action_forminator_custom_form_before_save_entry" );
<?php
do_action( "forminator_custom_form_after_save_entry", $payment_id, $response, 'payment' );
Action called after form payment
| Name | Type | Description |
|---|---|---|
| $payment_id | (int) | - the payment id |
| $response | (array) | - the post response |
| 'payment' | - | - |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_after_save_entry( $payment_id, $response, $payment ){
// do some action.
}
add_action( "forminator_custom_form_after_save_entry", "add_action_forminator_custom_form_after_save_entry" );
<?php
do_action( "forminator_custom_form_submit_before_set_fields", $entry, $form_id, $field_data_array );
Action called before setting fields to database
| Name | Type | Description |
|---|---|---|
| $entry | (\Forminator_Form_Entry_Model) | - the entry model |
| $form_id | (int) | - the form id |
| $field_data_array | (array) | - the entry data |
library/modules/custom-forms/front/front-action.php
| Version | Description |
|---|---|
| 1.0.2 | Added |
<?php
function add_action_forminator_custom_form_submit_before_set_fields( $entry, $form_id, $field_data_array ){
// do some action.
}
add_action( "forminator_custom_form_submit_before_set_fields", "add_action_forminator_custom_form_submit_before_set_fields" );