ims_registration_errors

Description

The “ims_registration_errors” filter is used to add error when registration fails, using the cart checkout process.

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

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

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

Example

// Apply filter
function modify_ims_registration_errors( $errors, $user_login, $user_email ) {
	$errors->add( 'my-custom-error', __('error message') );
	return  $errors;
}
add_filter('ims_registration_errors', 'modify_ims_registration_errors');

Note:  $errors is an WordPress error object, $user_login is a string, $user_email is a string.


Leave a Reply

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