bbp_get_current_user_name()
Return name of current user
Description Description
Return Return
(string)
Source Source
File: includes/users/template.php
function bbp_get_current_user_name() { // Default current user name $default = bbp_get_fallback_display_name(); // Check the $user_identity global $current_user_name = is_user_logged_in() ? bbp_get_global_object( 'user_identity', false, $default ) : $default; // Filter & return return apply_filters( 'bbp_get_current_user_name', $current_user_name ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |