Méthode | Description | |
---|---|---|
__construct ( ) | Constructor. | |
calculate_shipping ( $package = [] ) | calculate_shipping function. | |
clean ( mixed $code ) : string | clean function. | |
get_option_key ( ) : string | Return the name of the option in the WP DB. | |
get_valid_postcodes ( ) : array | Get postcodes for this method. | |
init ( ) | init function. | |
init_form_fields ( ) | init_form_fields function. | |
is_available ( array $package ) : boolean | See if the method is available. | |
is_valid_postcode ( $postcode, $country ) : boolean | See if a given postcode matches valid postcodes. | |
process_admin_options ( ) | Process and redirect if disabled. |
public calculate_shipping ( $package = [] ) |
public get_option_key ( ) : string | ||
Résultat | string |
public get_valid_postcodes ( ) : array | ||
Résultat | array |
public is_available ( array $package ) : boolean | ||
$package | array | |
Résultat | boolean |
public is_valid_postcode ( $postcode, $country ) : boolean | ||
Résultat | boolean |
public process_admin_options ( ) |