Clanbite Avatars Since 1.3.0

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

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

Filter PHP

Parameters

$data (array<string, mixed>)

Resolved data: shape, show_ring, show_badge, and in static mode badge.

$args (array<string, mixed>)

Render arguments (type, id, size, context, mode, …).

Example

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

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Introduced.