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.2

apply_filters('image_resize_dimensions') is found 1 times:

  • /wp-includes/media.php line 564
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    * @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: