Clanbite Players

apply_filters( 'clanbite_players_player_avatar_img_html', string $html, int $user_id, array $args, string $url )

Filters the player avatar <img> HTML fragment.

Filter PHP

Parameters

$html (string)

Markup.

$user_id (int)

User ID.

$args (array)

Arguments from clanbite_players_get_player_avatar_img_html().

$url (string)

Avatar URL.

Example

add_filter( 'clanbite_players_player_avatar_img_html', function ( $html, $user_id, $args, $url ) {
	// Change $html here.
	return $html;
}, 10, 4 );

Defined in inc/extensions/players/functions.php