Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/class-wc-validation.php

WC_Validation::format_phone()

Method: Format a given phone number.

Source: includes/class-wc-validation.php:198

Used by 0 functions | Uses 1 function

WC_Validation::is_email()

Method: Validates an email using WordPress native is_email function.

Source: includes/class-wc-validation.php:22

Used by 0 functions | Uses 0 functions

WC_Validation::is_phone()

Method: Validates a phone number using a regular expression.

Source: includes/class-wc-validation.php:32

Used by 4 functions | Uses 0 functions

WC_Validation::is_postcode()

Method: Checks for a valid postcode.

Source: includes/class-wc-validation.php:47

Used by 4 functions | Uses 3 functions

woocommerce_validate_postcode

Filter Hook: General user data validation methods

Source: includes/class-wc-validation.php:123

Used by 1 function | Uses 0 functions

WC_Validation::is_gb_postcode()

Method: Check if is a GB postcode.

Source: includes/class-wc-validation.php:132

Used by 1 function | Uses 0 functions

WC_Validation::format_postcode()

Method: Format the postcode according to the country and length of the postcode.

Source: includes/class-wc-validation.php:188

Used by 0 functions | Uses 1 function

WC_Validation

Class: Validation class.

Source: includes/class-wc-validation.php:14

Used by 0 functions | Uses 0 functions
Proudly powered by WordPress