apply_filters( 'clanbite_avatar_args', array<string, mixed> $args )Filters an avatar's arguments before it is built, in both render modes.
Use it to add context for the other clanbite_avatar_* filters or to change how one avatar renders, for example to force a smaller size in a surface you own. Keep the keys documented on clanbite_render_avatar().
Filter PHP
Parameters
$args(array<string, mixed>)Avatar arguments including
type,id,size,context,viewer_id,is_viewer,object_type,object_id,extensionandcontext_data.
Example
add_filter( 'clanbite_avatar_args', function ( $args ) {
// Change $args here.
return $args;
}, 10, 1 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |