Skip to content
ClanbiteDevelopers
GuidesReferenceREST APIReleases
Clanbite.com

Reference

  • Hooks598
  • Functions491
  • Classes133
  • Methods1,439
  • REST API88
  • Blocks58
  • Abilities22
  • Settings12
  • Messages60
  • Components9
  • Database tables20
  • Releases
  1. Home
  2. Reference
  3. Functions
  4. clanbite_player_user_id_from_canonical_request_path()

Clanbite

clanbite_player_user_id_from_canonical_request_path(  ): int

Resolve a player user ID from the canonical /players/{nicename}/… path (see rewrite rules).

Uses clanbite_get_canonical_request_path() so subdirectory installs and home_path prefixes match the same routes as \Kernowdev\Clanbite\Extensions\Players::filter_request_for_players_virtual_routes().

Returns

int User ID or 0 when the path is not a member profile (directory, settings, etc.).

Defined in inc/extensions/players/functions.php

In this article

  • Returns
  • View as Markdown
  • Back to top
Generated from the source of every Clanbite release. Something missing or unclear? It is fixed in the code and appears here with the next release.Clanbite.com