ims_before_page

Description

The “ims_before_page” filter is used to add HTML to the beginning of each image store page like photos, favorites, shopping-cart and receipt.

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

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

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

Example

// Apply filter
function add_ims_before_page( $output, $page ) {
	if( $page == 'photos')
		return $output . "<p>my message</p>"; 
	else 
		return $output;
}
add_filter('ims_before_page', 'add_ims_before_page');

Note:  $output is a HTML string, $page is a string.


Leave a Reply

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