PHP Class WC_Shipping_Legacy_Local_Pickup

This class is here for backwards commpatility for methods existing before zones existed.
Deprecation: 2.6.0
Author: WooThemes
Inheritance: extends WC_Shipping_Method
Afficher le fichier Open project: woocommerce/woocommerce

Méthodes publiques

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.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

calculate_shipping() public méthode

calculate_shipping function.
public calculate_shipping ( $package = [] )

clean() public méthode

clean function.
public clean ( mixed $code ) : string
$code mixed
Résultat string

get_option_key() public méthode

Return the name of the option in the WP DB.
Since: 2.6.0
public get_option_key ( ) : string
Résultat string

get_valid_postcodes() public méthode

Get postcodes for this method.
public get_valid_postcodes ( ) : array
Résultat array

init() public méthode

init function.
public init ( )

init_form_fields() public méthode

init_form_fields function.
public init_form_fields ( )

is_available() public méthode

See if the method is available.
public is_available ( array $package ) : boolean
$package array
Résultat boolean

is_valid_postcode() public méthode

See if a given postcode matches valid postcodes.
public is_valid_postcode ( $postcode, $country ) : boolean
Résultat boolean

process_admin_options() public méthode

Process and redirect if disabled.