bp_core_mysteryman_src

  • apply_filters( 'bp_core_mysteryman_src', bp_core_avatar_default(), $grav_size )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 269
      		else if ( 'full' == $type )
      			$grav_size = bp_core_avatar_full_width();
      		else if ( 'thumb' == $type )
      			$grav_size = bp_core_avatar_thumb_width();
      
      		// Set gravatar type
      		if ( empty( $bp->grav_default->{$object} ) )
      			$default_grav = 'wavatar';
      		else if ( 'mystery' == $bp->grav_default->{$object} )
      			$default_grav = apply_filters( 'bp_core_mysteryman_src', bp_core_avatar_default(), $grav_size );
      		else
      			$default_grav = $bp->grav_default->{$object};
      
      		// Set gravatar object
      		if ( empty( $email ) ) {
      			if ( 'user' == $object ) {
      				$email = bp_core_get_user_email( $item_id );
      			} else if ( 'group' == $object || 'blog' == $object ) {
      				$email = "{$item_id}-{$object}@{bp_get_root_domain()}";
      			}
      

Comments are closed.