ims_gateways

Description

The “ims_gateways” filter is used to add or remove payment gateways.

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

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

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

Example

// Apply filter
function modify_ims_gateways( $gateways ) {
	$gateways['custom'] = array(
		'include' => "path/to/php/object/file.php",
		'class' => 'ImStoreCartCustom',
		'name' => __( 'Custom'),
		'url' =>  "http://full/url/to/post/cart/data",
	);
}
add_filter('ims_gateways', 'modify_ims_gateways');

Note:  $gateways is a multidimensional array.


Leave a Reply

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