Description
The “ims_color_options” filter is used to add color input fields to the slideshow color preview.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_color_options', 'filter_function_name'); ?>
The hook is located in the image-store/_store/slideshow.php file.
Example
// Apply filter function add_ims_color_options( $output ) { return $output . '<label><input type="checkbox" name="ims-color[]" value="green" class="ims-color ims-color-green" /> ' . __('Green') . '</label>; } add_filter('ims_color_options', 'add_ims_color_options');
Note: $output is a HTML string.
Leave a Reply