um_profile_field_filter_hook__{$key}

Hook type

Filter

Description

Change or filter field value by field key ($key)

Parameters

$value

(string) Field Value

$data

(array) Field Data

Usage

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

Examples

<?php
add_filter( 'um_profile_field_filter_hook__{$key}', 'my_profile_field', 10, 2 );
function my_profile_field( $value, $data ) {
    // your code here
return $value;
}
?>

Change Log

Since: 2.0

Source

um_profile_field_filter_hook__{$key} is located in includes/um-short-functions.php::line 661