bp_get_loggedin_user_username

  • apply_filters( 'bp_get_loggedin_user_username', $username )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 938
      	function bp_get_loggedin_user_username() {
      		global $bp;
      
      		if ( !empty( $bp->loggedin_user->id ) ) {
      			$username = bp_core_get_username( $bp->loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login );
      		} else {
      			$username = '';
      		}
      
      		return apply_filters( 'bp_get_loggedin_user_username', $username );
      	}
      
      /** Signup Form ***************************************************************/
      
      function bp_has_custom_signup_page() {
      	if ( locate_template( array( 'register.php' ), false ) || locate_template( array( '/registration/register.php' ), false ) )
      		return true;
      
      	return false;
      }
      

Comments are closed.