# clanbite_player_user_id_from_canonical_request_path()

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()`.

```php
clanbite_player_user_id_from_canonical_request_path(  ): int
```

## Return

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