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
Datei anzeigen Open project: woocommerce/woocommerce

Public Methods

Method 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 method

Constructor.
public __construct ( )

calculate_shipping() public method

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

clean() public method

clean function.
public clean ( mixed $code ) : string
$code mixed
return string

get_option_key() public method

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

get_valid_postcodes() public method

Get postcodes for this method.
public get_valid_postcodes ( ) : array
return array

init() public method

init function.
public init ( )

init_form_fields() public method

init_form_fields function.
public init_form_fields ( )

is_available() public method

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

is_valid_postcode() public method

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

process_admin_options() public method

Process and redirect if disabled.