um_admin_field_validation_hook

Hook type

Filter

Description

Extend validation types

Parameters

$types

(array) Validation Types

Usage

add_filter( 'um_admin_field_validation_hook', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_admin_field_validation_hook', 'my_admin_field_validation', 10, 1 );
function my_admin_field_validation( $types ) {
    // your code here
return $types;
}
?>

Change Log

Since: 2.0

Source

um_admin_field_validation_hook is located in includes/core/class-builtin.php::line 1274