groups_avatar_upload_dir

  • apply_filters( 'groups_avatar_upload_dir', array( 'path' => $path, 'url' => $newurl, 'subdir' => $newsubdir, 'basedir' => $newbdir, 'baseurl' => $newburl, 'error' => false ) )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-functions.php :: Trac Source Line: 453
      	$newbdir = $path;
      
      	if ( !file_exists( $path ) )
      		@wp_mkdir_p( $path );
      
      	$newurl    = bp_core_avatar_url() . '/group-avatars/' . $group_id;
      	$newburl   = $newurl;
      	$newsubdir = '/group-avatars/' . $group_id;
      
      	return apply_filters( 'groups_avatar_upload_dir', array( 'path' => $path, 'url' => $newurl, 'subdir' => $newsubdir, 'basedir' => $newbdir, 'baseurl' => $newburl, 'error' => false ) );
      }
      
      /*** Group Member Status Checks ************************************************/
      
      function groups_is_user_admin( $user_id, $group_id ) {
      	return BP_Groups_Member::check_is_admin( $user_id, $group_id );
      }
      
      function groups_is_user_mod( $user_id, $group_id ) {
      	return BP_Groups_Member::check_is_mod( $user_id, $group_id );
      

Comments are closed.