bp_core_pre_avatar_handle_crop

  • apply_filters( 'bp_core_pre_avatar_handle_crop', true, $r ) )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 509
      		'crop_y'        => 0
      	);
      
      	$r = wp_parse_args( $args, $defaults );
      
      	/***
      	 * You may want to hook into this filter if you want to override this function.
      	 * Make sure you return false.
      	 */
      	if ( !apply_filters( 'bp_core_pre_avatar_handle_crop', true, $r ) )
      		return true;
      
      	extract( $r, EXTR_SKIP );
      
      	if ( !$original_file )
      		return false;
      
      	$original_file = bp_core_avatar_upload_path() . $original_file;
      
      	if ( !file_exists( $original_file ) )
      

Comments are closed.