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

apply_filters('image_make_intermediate_size') is found 2 times:

  • /wp-includes/class-wp-image-editor-gd.php line 566
    			 * @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
     
    		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: