iphorm_post_validate

This hook is run while the form is being processed, after the form data has passed validation.

iphorm_post_validate

This hook is run for all forms.

Example

1
2
3
4
5
function my_post_validate($form)
{
    // Custom code
}
add_action('iphorm_post_validate', 'my_post_validate');
function my_post_validate($form)
{
    // Custom code
}
add_action('iphorm_post_validate', 'my_post_validate');

Parameters

  • $form – the iPhorm instance

Accessing form data

See Getting form values

iphorm_post_validate_X

This hook is run for a single form, replace X with the form ID.

Example

1
2
3
4
5
function my_post_validate($form)
{
    // Custom code
}
add_action('iphorm_post_validate_1', 'my_post_validate');
function my_post_validate($form)
{
    // Custom code
}
add_action('iphorm_post_validate_1', 'my_post_validate');

Parameters

  • $form – the iPhorm instance

Accessing form data

See Getting form values

Still having trouble? Head over to the forums.

Forums