bbp_get_single_user_template()
Get the user profile template
Description
Return
(string) Path to template file
Source
File: bp-forums/core/template-loader.php
177 178 179 180 181 182 183 184 185 186 187 | function bbp_get_single_user_template() { $nicename = bbp_get_displayed_user_field( 'user_nicename' ); $user_id = bbp_get_displayed_user_id(); $templates = array ( 'single-user-' . $nicename . '.php' , // Single User nicename 'single-user-' . $user_id . '.php' , // Single User ID 'single-user.php' , // Single User 'user.php' , // User ); return bbp_get_query_template( 'profile' , $templates ); } |
Changelog
Version | Description |
---|---|
bbPress (r3311) | 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.