- fixed the skype field for new skype id

- added viber, whatsapp and telegram fields
This commit is contained in:
ashubawork
2021-10-05 10:05:16 +03:00
parent 070b0f4017
commit ce3fbbc512
3 changed files with 103 additions and 2 deletions
+6
View File
@@ -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'] ) );