um_user_display_name_filter

Hook type

Filter

Description

Change user display name on um_user function

Parameters

$name

(string) User Name

$user_id

(int) User ID

$html

(bool) Is HTML

Usage

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

Examples

<?php
add_filter( 'um_user_display_name_filter', 'my_user_display_name', 10, 3 );
function my_user_display_name( $name, $user_id, $html ) {
    // your code here
return $name;
}
?>

Change Log

Since: 2.0

Source

um_user_display_name_filter is located in includes/um-short-functions.php::line 2014