bbp_user_id( int $user_id, bool $displayed_user_fallback = true, bool $current_user_fallback = false )
Output a validated user id
Description
Parameters
- $user_id
-
(Optional) User id
- $displayed_user_fallback
-
(Optional) Fallback on displayed user?
Default value: true
- $current_user_fallback
-
(Optional) Fallback on current user?
Default value: false
Source
File: bp-forums/users/template.php
function bbp_user_id( $user_id = 0, $displayed_user_fallback = true, $current_user_fallback = false ) { echo bbp_get_user_id( $user_id, $displayed_user_fallback, $current_user_fallback ); }
Changelog
Version | Description |
---|---|
bbPress (r2729) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.