mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
- fixed the skype field for new skype id
- added viber, whatsapp and telegram fields
This commit is contained in:
@@ -709,6 +709,12 @@ function um_submit_form_errors_hook_( $args ) {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'telegram_url':
|
||||
if ( ! UM()->validation()->is_url( $args[ $key ], 't.me' ) ) {
|
||||
UM()->form()->add_error( $key, sprintf( __( 'Please enter a valid %s username or profile URL', 'ultimate-member' ), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'soundcloud_url':
|
||||
if ( ! UM()->validation()->is_url( $args[ $key ], 'soundcloud.com' ) ) {
|
||||
UM()->form()->add_error( $key, sprintf( __( 'Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
|
||||
Reference in New Issue
Block a user