Clanbite Avatars Since 1.2.0 Updated in 1.3.0
apply_filters( 'clanbite_avatar_interactivity_img_attributes_{context}', array<string, string|bool> $img_attrs, array<string, mixed> $args )Filters the Interactivity-API avatar <img> attributes for one context.
Context-specific variant of clanbite_avatar_interactivity_img_attributes.
Filter PHP
Parameters
$img_attrs(array<string, string|bool>)Attribute map.
$args(array<string, mixed>)Avatar arguments (
type,id,size,context, …); seeclanbite_render_avatar_for_interactivity().
Example
add_filter( 'clanbite_avatar_interactivity_img_attributes_{context}', function ( $img_attrs, $args ) {
// Change $img_attrs here.
return $img_attrs;
}, 10, 2 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |
| 1.2.0 | Introduced. |