ims_image_caption

Description

The “ims_image_caption” filter is used to modify the image caption in the slideshow page.

A plugin (or theme) can modify the output with the code:

<?php add_filter( 'ims_image_caption', 'filter_function_name'); ?>

The hook is located in the image-store/_inc/store.php file.

Example

// Apply filter
function modify_ims_image_caption( $caption, $image, $location  ) {
return $caption . ": " . $image->ID;
}
add_filter('ims_image_caption', 'modify_ims_image_caption');

Note: $caption is a HTML string, $image is a object returned by get_post(), $location is an string.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *