image_make_intermediate_size

image_make_intermediate_size

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_make_intermediate_size') is found 2 times:

  • /wp-includes/class-wp-image-editor-gd.php line 559
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
             * @since 2.6.0
             *
             * @param string $filename Name of the file.
             */
            'file'      => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ),
            'width'     => $this->size['width'],
            'height'    => $this->size['height'],
            'mime-type' => $mime_type,
            'filesize'  => wp_filesize( $filename ),
        );
    }
  • /wp-includes/class-wp-image-editor-imagick.php line 872
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
        return array(
            'path'      => $filename,
            /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
            'file'      => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ),
            'width'     => $this->size['width'],
            'height'    => $this->size['height'],
            'mime-type' => $mime_type,
            'filesize'  => wp_filesize( $filename ),
        );
    }

See this hook used in plugins: