ims_taxonomy_navigation

Description

The “ims_taxonomy_navigation” filter is used to modify the next and previous page navigation link in the album and tags pages.

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

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

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

Example

// Apply filter
function modify_ims_taxonomy_navigation( $navigation, $term ) {
if( $term->term_ID == 3452 )
return; //don't show navigation on term 3452
else 
return $output;
}
add_filter('ims_taxonomy_navigation', 'modify_ims_taxonomy_navigation');

Note: $output is a HTML string, $term is a object returned by get_term().


Comments

Leave a Reply

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