image_resize_dimensions

image_resize_dimensions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('image_resize_dimensions') is found 1 times:

  • /wp-includes/media.php line 564
    	 * @param int        $dest_h New height in pixels.
    	 * @param bool|array $crop   Whether to crop image to specified width and height or resize.
    	 *                           An array can specify positioning of the crop area. Default false.
    	 */
    	$output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop );
    
    	if ( null !== $output ) {
    		return $output;
    	}
    
    	// Stop if the destination size is larger than the original image dimensions.
    

See this hook used in plugins: