Clanbite Avatars Since 1.2.0 Updated in 1.3.0

apply_filters( 'clanbite_avatar_interactivity_html_{context}', string $output, array<string, mixed> $args )

Filters the Interactivity-API avatar HTML for one context.

Context-specific variant of clanbite_avatar_interactivity_html.

Filter PHP

Parameters

$output (string)

Avatar markup.

$args (array<string, mixed>)

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

Example

add_filter( 'clanbite_avatar_interactivity_html_{context}', function ( $output, $args ) {
	// Change $output here.
	return $output;
}, 10, 2 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Updated.
1.2.0Introduced.