The “ims_promo_types” 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_promo_types', 'filter_function_name' ); ?>

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


// Apply filter
function addims_promo_type( $promotions ) {
	$promotions[] = __( 'Register user' ); // add new promotion type
	return $promotions; 
add_filter('ims_promo_types', 'add_ims_promo_type');

Note:  $promotions is an numeric array.

Leave a Reply

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