Clanbite Avatars Since 1.2.0 Updated in 1.3.0
apply_filters( 'clanbite_groups_get_avatar_alt', string $alt, int $id )Resolves the alt text for a group's avatar.
Core ships no group implementation; the plugin that owns cp_group should return the text here.
Filter PHP
Parameters
$alt(string)Alt text (empty by default).
$id(int)Group ID.
Example
add_filter( 'clanbite_groups_get_avatar_alt', function ( $alt, $id ) {
// Change $alt here.
return $alt;
}, 10, 2 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |
| 1.2.0 | Introduced. |