Description
The “ims_widget_images” filter is used modify widget output.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_widget_images', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/widget.php file.
Example
// Apply filter function modify_ims_widget_images( $output, $images, $widget ) { if( empty( $images )) return __( 'no images found' ); else return $output; } add_filter('ims_widget_images', 'modify_ims_widget_images');
Note: $output is an HTML string, $images is an multidimensional array, $widget is the widget object.