Clanbite Avatars Since 1.3.0

apply_filters( 'clanbite_avatar_progress_demo_value', int|null $demo, int $user_id )

Filters a fixed progress value to draw when no real rank progress is available.

By default no XP ring is drawn unless a Ranks ladder has "Show progress on avatar" enabled. Return an integer from 0 to 100 to force a ring, for example while styling it.

Filter PHP

Parameters

$demo (int|null)

Progress percentage, or null to render nothing (default).

$user_id (int)

User ID the avatar belongs to.

Example

add_filter( 'clanbite_avatar_progress_demo_value', function ( $demo, $user_id ) {
	// Change $demo here.
	return $demo;
}, 10, 2 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Introduced.