bbp_get_current_user_name()

Return name of current user

Description

Return

(string)

Source

File: bp-forums/users/template.php

	function bbp_get_current_user_name() {
		global $user_identity;

		$current_user_name = is_user_logged_in() ? $user_identity : __( 'Anonymous', 'buddyboss' );

		return apply_filters( 'bbp_get_current_user_name', $current_user_name );
	}

Changelog

Changelog
Version Description
bbPress (r2574) 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.