ims_before_galleries

Description

The “ims_before_galleries” filter is used to add HTML just before the galleries are displayed.

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

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

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

Example

// Apply filter
function add_ims_before_galleries( $output, $gallery_tags, $ImStore ) {
	return $output . "<p>my message</p>"; 
}
add_filter('ims_before_galleries', 'add_ims_before_galleries');

Note:  $output is a HTML string, $gallery_tags is an associative array containing HTML tags, $ImStore is the global store object.


Leave a Reply

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