PHP 클래스 WC_Shipping_Legacy_Local_Pickup

This class is here for backwards commpatility for methods existing before zones existed.
사용 중단: 2.6.0
저자: WooThemes
상속: extends WC_Shipping_Method
파일 보기 프로젝트 열기: woocommerce/woocommerce

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

calculate_shipping() 공개 메소드

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

clean() 공개 메소드

clean function.
public clean ( mixed $code ) : string
$code mixed
리턴 string

get_option_key() 공개 메소드

Return the name of the option in the WP DB.
부터: 2.6.0
public get_option_key ( ) : string
리턴 string

get_valid_postcodes() 공개 메소드

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

init() 공개 메소드

init function.
public init ( )

init_form_fields() 공개 메소드

init_form_fields function.
public init_form_fields ( )

is_available() 공개 메소드

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

is_valid_postcode() 공개 메소드

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

process_admin_options() 공개 메소드

Process and redirect if disabled.