Clanbite Avatars Since 1.2.0 Updated in 1.3.0

apply_filters( 'clanbite_{type}_avatar_html', string $output, array<string, mixed> $args )

Filters the avatar HTML for one entity type (player, team, group).

Type-specific variant of clanbite_avatar_html.

Filter PHP

Parameters

$output (string)

Avatar markup.

$args (array<string, mixed>)

Avatar arguments (type, id, size, context, shape, …); see clanbite_render_avatar().

Example

add_filter( 'clanbite_{type}_avatar_html', function ( $output, $args ) {
	// Change $output here.
	return $output;
}, 10, 2 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Updated.
1.2.0Introduced.