Filter: um_hook_for_field_{$type}

apply_filters( 'um_hook_for_field_{$type}', $type ) → {string}

Filters a field type on the edit mode.

Parameters:
Name Type Description
$type string

Field Type.

Since:
  • 1.3.x
Source:
Returns:

Field Type.

Type
string
Example

Change a field type.

function my_field_type( $type ) {
    // your code here
    return $type;
}
add_filter( 'um_hook_for_field_{$type}', 'my_field_type', 10, 1 );