mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Version 1.0.19
This commit is contained in:
@@ -74,6 +74,8 @@ class UM_Validation {
|
||||
*** @is phone number
|
||||
***/
|
||||
function is_phone_number( $string ){
|
||||
if ( !$string )
|
||||
return true;
|
||||
if ( !preg_match( $this->regex_phone_number, $string) )
|
||||
return false;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user