ims_gallery_tags

Description

The “ims_gallery_tags” filter is used to add HTML to the beginning of each image store page like photos, favorites, shopping-cart and receipt.

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

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

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

Example

// Apply filter
function modify_ims_gallery_tags( $tags ) {
//change html5 tags to standard tags
return array(
'gallerytag' => 'dl',
'imagetag' => 'dt',
'captiontag' => 'dd',
);
}
add_filter('ims_gallery_tags', 'modify_ims_gallery_tags');

Note: $tags is a associative array.


Comments

Leave a Reply

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