Filter: um_avatar_image_alternate_text

apply_filters( 'um_avatar_image_alternate_text', $alt, $data ) → {string}

Filters the user avatar image alt argument.

Parameters:
Name Type Description
$alt string

Avatar alt text.

$data array

Avatar data.

Since:
  • 1.3.x
Source:
Returns:

Avatar URL.

Type
string
Example

Change the user avatar URL.

function my_um_avatar_image_alternate_text( $alt, $data ) {
    // your code here
    $alt = 'some_alt';
    return $alt;
}
add_filter( 'um_avatar_image_alternate_text', 'my_um_avatar_image_alternate_text', 10, 2 );