ims_after_page

Description

The “ims_after_page” filter is used to add HTML to the end 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_after_page', 'filter_function_name'); ?>

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

Example

// Apply filter
function add_ims_after_page( $output, $page ) {
	if( $page == 'photos')
		return $output . "<p>my message</p>"; 
	else 
		return $output;
}
add_filter('ims_after_page', 'add_ims_after_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 *