PHP Class WC_Shipping_Legacy_Local_Delivery

This class is here for backwards commpatility for methods existing before zones existed.
Deprecation: 2.6.0
Author: WooThemes
Inheritance: extends WC_Shipping_Local_Pickup
Exibir arquivo Open project: woocommerce/woocommerce

Public Methods

Method Description
__construct ( ) Constructor.
calculate_shipping ( array $package = [] ) calculate_shipping function.
get_option_key ( ) : string Return the name of the option in the WP DB.
init ( ) init function.
init_form_fields ( ) Init form fields.
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 ( array $package = [] )
$package array (default: array())

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

init() public method

init function.
public init ( )

init_form_fields() public method

Init form fields.
public init_form_fields ( )

process_admin_options() public method

Process and redirect if disabled.