p2_get_user_display_name

The BP Groupblog p2 get user display name function.

Description

p2_get_user_display_name(); 

Usage

  1. if ( !function_exists( 'p2_get_user_display_name' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/themes/p2/inc/template-tags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = p2_get_user_display_name(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/themes/p2/inc/template-tags.php  
  1. function p2_get_user_display_name() { 
  2. global $current_user; 
  3.  
  4. return apply_filters( 'p2_get_user_display_name', isset( $current_user->first_name ) && $current_user->first_name ? $current_user->first_name : $current_user->display_name );