Description
The “ims_gallery_navigation” filter is used to modify the next and previous gallery navigation link in each gallery.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_gallery_navigation', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/store.php file.
Example
// Apply filter
function modify_ims_gallery_navigation( $navigation, $post ) {
if( $post->ID == 34381 )
return; //don't show navigation on post 34381
else
return $output;
}
add_filter('ims_gallery_navigation', 'modify_ims_gallery_navigation');
Note: $output is a HTML string, $post is a object returned by get_post().
Leave a Reply