Filter: um_user_avatar_url_filter

apply_filters( 'um_user_avatar_url_filter', $url, $user_id, $data ) → {string}

Filters the user avatar URL.

Parameters:
Name Type Description
$url string

Avatar URL.

$user_id int

User ID.

$data array

Avatar data.

Since:
  • 1.3.x
Source:
Returns:

Avatar URL.

Type
string
Example

Change the user avatar URL.

function my_um_user_avatar_url_filter( $url, $user_id, $data ) {
    // your code here
    $url = 'some_url';
    return $url;
}
add_filter( 'um_user_avatar_url_filter', 'my_um_user_avatar_url_filter', 10, 3 );