apply_filters( 'um_avatar_image_alternate_text', $alt, $data ) → {string}
Filters the user avatar image alt
argument.
Parameters:
Name | Type | Description |
---|---|---|
$alt |
string | Avatar |
$data |
array | Avatar data. |
- Since:
- 1.3.x
- Source:
Returns:
Avatar URL.
- Type
- string
Example
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 );