PHP Class WC_Shipping_Legacy_Free_Shipping

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

Public Properties

Property Type Description
$min_amount Min amount to be valid
$requires Requires option

Public Methods

Method Description
__construct ( ) Constructor.
calculate_shipping ( $package = [] ) : array calculate_shipping function.
get_option_key ( ) : string Return the name of the option in the WP DB.
init ( ) init function.
init_form_fields ( ) Initialise Gateway Settings Form Fields.
is_available ( array $package ) : boolean is_available function.
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 = [] ) : array
return 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

Initialise Gateway Settings Form Fields.
public init_form_fields ( )

is_available() public method

is_available function.
public is_available ( array $package ) : boolean
$package array
return boolean

process_admin_options() public method

Process and redirect if disabled.

Property Details

$min_amount public_oe property

Min amount to be valid
public $min_amount

$requires public_oe property

Requires option
public $requires