um_field_default_value

Hook type

Filter

Description

Change field default value

Parameters

$default

(string) Field Default Value

$data

(array) Field Data

$type

(string) Field Type

Usage

add_filter( 'um_field_default_value', 'function_name', 10, 3 );

Examples

<?php
add_filter( 'um_field_default_value', 'my_field_default_value', 10, 3 );
function my_field_default_value( $default, $data, $type ) {
    // your code here
return $default;
}
?>

Change Log

Since: 2.0

Source

um_field_default_value is located in includes/core/class-fields.php::line 662