bn_new_mysteryman

The BuddyPress cover bn new mysteryman function.

Description

bn_new_mysteryman(); 

Usage

  1. if ( !function_exists( 'bn_new_mysteryman' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-cover/bp-cover.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bn_new_mysteryman(); 
  7.  

Defined (1)

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

/bp-cover.php  
  1. function bn_new_mysteryman () { 
  2. $default_avatar = get_option('bp_cover_avatar'); 
  3. if ( ! empty( $default_avatar ) ) { 
  4. $avatar = $default_avatar; 
  5. }else{ 
  6. $avatar = BPCO_PLUGIN_URL ."/images/default_user.jpg"; 
  7. }  
  8.  
  9. return apply_filters( 'bp_cover_get_default_avatar', $avatar );