um_submit_form_error

Hook type

Filter

Description

Change error text on submit form

Parameters

$error

(string) Error String

$key

(string) Error Key

Usage

<?php add_filter( 'um_submit_form_error', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_submit_form_error', 'my_submit_form_error', 10, 2 );
function my_submit_form_error( $error, $key ) {
    // your code here
return $error;
}
?>

Change Log

Since: 2.0

Source

um_submit_form_error is located in includes/core/class-form.php::line 172