Clanbite Since 1.6.3

version_avatar_url( mixed $url, mixed $user_id ): mixed

Add the avatar's attachment ID to its address as ver, so a browser or cache never shows a previous cut-out of the same picture.

Only for avatars that were cut from an original (their file may have been re-used by an earlier release); a changed position makes a new attachment, so the address changes with the picture.

public

Class: Kernowdev\Clanbite\Extensions\Players\Player_Media

Parameters

$url (mixed) Required

Avatar URL.

$user_id (mixed) Required

Player.

Returns

mixed

Defined in inc/extensions/players/class-player-media.php

Changelog

VersionDescription
1.6.3Introduced.