Filter: um_profile_tag_hook__{$usermeta}

apply_filters( 'um_profile_tag_hook__{$usermeta}', $value, $id ) → {string}

Filters the user placeholders value of pattern for logged-in user.

Parameters:
Name Type Description
$value string

User meta field value.

$id int

User ID.

Since:
  • 1.3.x
Source:
Returns:

User meta field value.

Type
string
Example

Add the replacement value for `{user_description}` placeholder.

function my_user_description( $value, $user_id ) {
    $value = get_user_meta( $user_id, 'user_description', true );
    return $value;
}
add_filter( 'um_profile_tag_hook__user_description', 'my_user_description', 10, 2 );