um_custom_field_validation_{$custom}

Hook type

Action

Description

Submit form validation for custom field

Parameters

$key

(string) Field Key

$field

(array) Field Data

$args

(array) Form Arguments

Usage

add_action( 'um_custom_field_validation_{$custom}', 'function_name', 10, 3 );

Examples

<?php
add_action( 'um_custom_field_validation_{$custom}', 'my_custom_field_validation', 10, 3 );
function my_custom_field_validation( $key, $field, $args ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_custom_field_validation_{$custom} is located in includes/core/um-actions-form.php::line 525