Clanbite Since 1.6.5

clanbite_events_get_player_events_url( int $owner_id, int|string $event = 0 ): string

URL of a player's Events tab, optionally pointing at one event or the "new event" form.

Parameters

$owner_id (int) Required

Player user ID.

$event (int|string) Optional

Event post ID, new for the create form, or 0 for the calendar.

Default: 0

Returns

string Empty when the player has no profile URL.

Defined in inc/events/functions.php

Changelog

VersionDescription
1.6.5Introduced.