um_profile_field_filter_hook__{$type}

Hook type

Filter

Description

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

Parameters

$value

(string) Field Value

$data

(array) Field Data

Usage

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

Examples

<?php
add_filter( 'um_profile_field_filter_hook__{$type}', '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__{$type} is located in includes/um-short-functions.php::line 684