Clanbite

clanbite_parse_team_profile_url( string $url ): array{origin: string, slug: string}|null

Parse a team profile URL into origin + slug when it matches /teams/{slug}/ (with optional subpaths).

Parameters

$url (string) Required

Full HTTP(S) URL.

Returns

array{origin: string, slug: string}|null Null when the pattern does not match.

Defined in inc/extensions/teams/functions.php