ims_before_pricelist_page

Description

The “ims_before_pricelist_page” filter is used to modify or add HTML to the price list page before the output is generated.

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

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

The hook is located in the image-store/_store/price-list.php file.

Example

// Apply filter
function add_ims_price_list_message( $output, $price_list_id ) {
	if( $price_list_id == 593 )
		return "<p>my message</p>" . $output;
	else 
		return $output; 
}
add_filter('ims_before_pricelist_page', 'add_ims_price_list_message');

Note:  $output is a HTML string, $price_list_id is an integer.


Leave a Reply

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