ims_subnav

Description

The “ims_subnav” filter is used to add or remove Image Store links like select all, remove all, favorites, and add to cart.

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

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

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

Example

// Apply filter
function add_ims_subnav( $links ) {
$links['my_pictures'] = __( 'My pictures' ); // add new page
return $links; 
}
add_filter('ims_subnav', 'add_ims_subnav');

Note: $links is an associative array.


Comments

Leave a Reply

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