apply_filters( 'clanbite_avatar_url', string $url, string $type, int $id, string $size, string $context )Filter avatar URL.
Filter PHP
Parameters
$url(string)Avatar URL.
$type(string)Entity type.
$id(int)Entity ID.
$size(string)Size.
$context(string)Context.
Example
add_filter( 'clanbite_avatar_url', function ( $url, $type, $id, $size, $context ) {
// Change $url here.
return $url;
}, 10, 5 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |