um_custom_error_message_handler
Hook type
Filter
Description
Add custom error message
Parameters
$error
(string) Error message
$request_error
(array) Error data
Usage
<?php add_filter( 'um_custom_error_message_handler', 'function_name', 10, 2 ); ?>
Examples
<?php add_filter( 'um_custom_error_message_handler', 'my_custom_error_message', 10, 2 ); function my_custom_error_message( $error, $request_error ) { // your code here return $error; } ?>
Change Log
Since: 2.0
Source
um_custom_error_message_handler
is located in includes/core/um-actions-misc.php::line 153