mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
Add new filter 'um_submit_form_error'
This commit is contained in:
+5
-2
@@ -38,8 +38,11 @@ class UM_Form {
|
||||
*** @add errors
|
||||
***/
|
||||
function add_error( $key, $error ) {
|
||||
if ( !isset( $this->errors[$key] ) ){
|
||||
$this->errors[$key] = $error;
|
||||
if ( ! isset( $this->errors[ $key ] ) ){
|
||||
|
||||
$error = apply_filters('um_submit_form_error', $key, $error );
|
||||
|
||||
$this->errors[ $key ] = $error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user