Method | Description | |
---|---|---|
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 | |
return | string |
public static format_postcode ( $postcode, $country ) : string | ||
return | string | formatted postcode |
public static is_GB_postcode ( string $to_check ) : boolean | ||
$to_check | string | A postcode |
return | boolean |
public static is_postcode ( $postcode, $country ) : boolean | ||
return | boolean |