Clanbite

get_public_team_data_by_slug_or_url( string $slug, string $url ): array<string, mixed>|\WP_Error

Resolve public team metadata by slug or absolute team profile URL.

public static

Class: Kernowdev\Clanbite\Public_Rest

Parameters

$slug (string) Required

Requested cp_team post_name (may be empty when url is set).

$url (string) Required

Full team profile URL (optional).

Returns

array<string, mixed>|\WP_Error

Defined in inc/class-public-rest.php