Clanbite

clanbite_players_normalize_social_profile_link_url( string $slug, string $raw ): string

Turns a stored social profile value (URL, @handle, username, etc.) into an absolute https URL.

Used by the Player Social Links block and available to extensions. Unknown or invalid input returns an empty string.

Parameters

$slug (string) Required

Field slug from clanbite_players_get_social_profile_field_definitions().

$raw (string) Required

Stored value (trimmed internally).

Returns

string Escaped-safe absolute URL, or empty string.

Defined in inc/extensions/players/functions.php