bp_core_avatar_item_id

  • apply_filters( 'bp_core_avatar_item_id', $item_id, $object )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 123
      	// Set item_id if not passed
      	if ( !$item_id ) {
      		if ( 'user' == $object )
      			$item_id = $bp->displayed_user->id;
      		else if ( bp_is_active( 'groups' ) && 'group' == $object )
      			$item_id = $bp->groups->current_group->id;
      		else if ( 'blog' == $object )
      			$item_id = $current_blog->id;
      
      		$item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );
      
      		if ( !$item_id )
      			return false;
      	}
      
      	// Set avatar_dir if not passed (uses $object)
      	if ( !$avatar_dir ) {
      		if ( 'user' == $object )
      			$avatar_dir = 'avatars';
      		else if ( bp_is_active( 'groups' ) && 'group' == $object )
      
    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 335
      	if ( !$item_id ) {
      		if ( 'user' == $object )
      			$item_id = $bp->displayed_user->id;
      		else if ( 'group' == $object )
      			$item_id = $bp->groups->current_group->id;
      		else if ( 'blog' == $object )
      			$item_id = $current_blog->id;
      
      		$item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );
      
      		if ( !$item_id ) return false;
      	}
      
      	if ( !$avatar_dir ) {
      		if ( 'user' == $object )
      			$avatar_dir = 'avatars';
      		else if ( 'group' == $object )
      			$avatar_dir = 'group-avatars';
      		else if ( 'blog' == $object )
      

Comments are closed.