Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Regenerate_Images::unfiltered_image_downsize( int $attachment_id, string $size )
Image downsize, without this classes filtering on the results.
Description Description
Parameters Parameters
- $attachment_id
-
(Required) Attachment ID.
- $size
-
(Required) Size to downsize to.
Return Return
(string) New image URL.
Source Source
File: includes/class-wc-regenerate-images.php
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; }