Clanbite Avatars Since 1.2.0 Updated in 1.3.0

do_action( 'clanbite_avatar_overlays_{context}', array<string, mixed> $args )

Fires when overlays (badges, status) are rendered for an avatar in one context.

Context-specific variant of clanbite_avatar_overlays.

Action PHP

Parameters

$args (array<string, mixed>)

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

Example

add_action( 'clanbite_avatar_overlays_{context}', function ( $args ) {
	// Run your code.
}, 10, 1 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Updated.
1.2.0Introduced.