mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- added a discord field (issue #926)
This commit is contained in:
@@ -758,6 +758,12 @@ function um_submit_form_errors_hook_( $args ) {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'discord':
|
||||
if ( ! UM()->validation()->is_discord_id( $args[ $key ] ) ) {
|
||||
UM()->form()->add_error( $key, __( 'Please enter a valid Discord ID', 'ultimate-member' ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
if ( ! UM()->validation()->is_url( $args[ $key ] ) ) {
|
||||
UM()->form()->add_error( $key, __( 'Please enter a valid URL', 'ultimate-member' ) );
|
||||
|
||||
Reference in New Issue
Block a user