Clanbite Avatars Since 1.2.0 Updated in 1.3.0

apply_filters( 'clanbite_groups_get_display_avatar', string $url, int $id, string|int[] $size, string $context )

Resolves a group's avatar URL.

Core ships no group implementation; the plugin that owns cp_group should return the URL here.

Filter PHP

Parameters

$url (string)

Avatar URL (empty by default).

$id (int)

Group ID.

$size (string|int[])

Image size slug or dimensions.

$context (string)

Rendering context.

Example

add_filter( 'clanbite_groups_get_display_avatar', function ( $url, $id, $size, $context ) {
	// Change $url here.
	return $url;
}, 10, 4 );

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Updated.
1.2.0Introduced.