um_edit_{$key}_field_value

Hook type

Filter

Description

Change field value on edit by field $key

Parameters

$value

(string) Field Value

$key

(string) Field Key

Usage

add_filter( 'um_edit_{$key}_field_value', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_edit_{$key}_field_value', 'my_edit_field_value', 10, 2 );
function my_edit_field_value( $value, $key ) {
    // your code here
return $value;
}
?>

Change Log

Since: 2.0

Source

um_edit_{$key}_field_value is located in includes/core/class-fields.php::line 732