bbp_get_current_user_name

  • apply_filters( 'bbp_get_current_user_name', $current_user_name )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 153
      	 * @uses apply_filters() Calls 'bbp_get_current_user_name' with the
      	 *                        current user name
      	 * @return string
      	 */
      	function bbp_get_current_user_name() {
      		global $user_identity;
      
      		$current_user_name = is_user_logged_in() ? $user_identity : __( 'Anonymous', 'bbpress' );
      
      		return apply_filters( 'bbp_get_current_user_name', $current_user_name );
      	}
      
      /**
       * Output avatar of current user
       *
       * @since bbPress (r2574)
       *
       * @param int $size Size of the avatar. Defaults to 40
       * @uses bbp_get_current_user_avatar() To get the current user avatar
       */
      

Comments are closed.