apply_filters( 'clanbite_avatar_img_attributes', array $img_attrs, array $args )Filter avatar image attributes.
Filter PHP
Parameters
$img_attrs(array)Image attributes.
$args(array)Avatar arguments (includes 'context' key).
Example
add_filter( 'clanbite_avatar_img_attributes', function ( $img_attrs, $args ) {
// Change $img_attrs here.
return $img_attrs;
}, 10, 2 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |