ims_load_pages

Description

The “ims_load_pages” filter is used to add or remove Image Store pages like photos, favorites, price list, and cart.

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

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

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

Example

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

Note: $pages is an associative array.


Comments

Leave a Reply

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