WordPress at Your Fingertips
function is not described

WC_Regenerate_Images::unfiltered_image_downsize() private WC 1.0

Image downsize, without this classes filtering on the results.

{} It's a method of the class: WC_Regenerate_Images{}

No Hooks.

Return

String. New image URL.

Usage

$result = WC_Regenerate_Images::unfiltered_image_downsize( $attachment_id, $size );
$attachment_id(int) (required)
Attachment ID.
$size(string) (required)
Size to downsize to.

Code of WC_Regenerate_Images::unfiltered_image_downsize() WC 5.9.0

private static function unfiltered_image_downsize( $attachment_id, $size ) {
	remove_action( 'image_get_intermediate_size', array( __CLASS__, 'filter_image_get_intermediate_size' ), 10, 3 );

	$return = image_downsize( $attachment_id, $size );

	add_action( 'image_get_intermediate_size', array( __CLASS__, 'filter_image_get_intermediate_size' ), 10, 3 );

	return $return;
}