iphorm_pre_validate

This hook is run while the form is being processed, but before the form values have been validated.

iphorm_pre_validate

This hook is run for all forms.

Example

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

Parameters

  • $form – the iPhorm instance

Accessing form data

See Getting form values

iphorm_pre_validate_X

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

Example

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

Parameters

  • $form – the iPhorm instance

Accessing form data

See Getting form values

Still having trouble? Head over to the forums.

Forums