Description
The “ims_download_image_original” filter is used to modify the original file path for download when other file sizes have not been found.
A plugin (or theme) can modify the path with the code:
<?php add_filter( 'ims_download_image_original', 'filter_function_name'); ?>
The hook is located in the image-store/admin/download.php file.
Example
// Apply filter function change_ims_download_image_original( $filepath, $file_id ) { return "/file/path/to/original/file.png"; } add_filter('ims_download_image_original', 'change_ims_download_image_original');
Note: $filepath is a string, $file_id is an integer.