The “ims_user_checkout_fields” filter is used to add additional user fields to the checkout forms; like zip, address, name and last name.

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

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

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


// Apply filter
function add_ims_user_checkout_fields( $fields ) {
	$fields[] = 'ims_country';
	return $fields;
add_filter('ims_user_checkout_fields', 'add_ims_user_checkout_fields');

Note:  $fields is a numeric array.

Leave a Reply

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