bp_get_profile_group_name

  • apply_filters( 'bp_get_profile_group_name', $group->name )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 741
      		if ( !is_numeric( $group_id ) )
      			$group_id = 1;
      
      		if ( !$group = wp_cache_get( 'xprofile_group_' . $group_id, 'bp' ) ) {
      			$group = new BP_XProfile_Group($group_id);
      			wp_cache_set( 'xprofile_group_' . $group_id, $group, 'bp' );
      		}
      
      		return apply_filters( 'bp_get_profile_group_name', $group->name );
      	}
      
      function bp_avatar_upload_form() {
      	global $bp;
      
      	if ( !(int)$bp->site_options['bp-disable-avatar-uploads'] )
      		bp_core_avatar_admin( null, $bp->loggedin_user->domain . $bp->profile->slug . '/change-avatar/', $bp->loggedin_user->domain . $bp->profile->slug . '/delete-avatar/' );
      	else
      		_e( 'Avatar uploads are currently disabled. Why not use a <a href="http://gravatar.com" target="_blank">gravatar</a> instead?', 'buddypress' );
      }
      

Comments are closed.