메소드 | 설명 | |
---|---|---|
format_phone ( mixed $tel ) : string | format_phone function. | |
format_postcode ( $postcode, $country ) : string | Format the postcode according to the country and length of the postcode. | |
is_GB_postcode ( string $to_check ) : boolean | Check if is a GB postcode. | |
is_email ( $email ) : boolean | Validates an email using wordpress native is_email function. | |
is_phone ( $phone ) : boolean | Validates a phone number using a regular expression. | |
is_postcode ( $postcode, $country ) : boolean | Checks for a valid postcode. |
public static format_phone ( mixed $tel ) : string | ||
$tel | mixed | |
리턴 | string |
public static format_postcode ( $postcode, $country ) : string | ||
리턴 | string | formatted postcode |
public static is_GB_postcode ( string $to_check ) : boolean | ||
$to_check | string | A postcode |
리턴 | boolean |
public static is_postcode ( $postcode, $country ) : boolean | ||
리턴 | boolean |