Description
The “ims_login_errors” filter is used to modify the error message after a login has failed after a purchase has been completed.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_login_errors', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/cart.php file.
Example
// Apply filter function modify_ims_login_errors( $errors ) { return "<p>".__('my custom error')."</p>"; } add_filter('ims_login_errors', 'modify_ims_login_errors');
Note: $errors is a HTML string.