PHP Class WC_Legacy_Shipping_Zone

Author: WooThemes
Inheritance: extends WC_Data
Show file Open project: woocommerce/woocommerce

Public Methods

Method Description
create ( ) Create a zone.
get_zone_id ( ) : integer | null Get zone ID
read ( $zone_id ) Read a shipping zone by ID.
update ( ) Update a zone.

Method Details

create() public method

Create a zone.
Deprecation: 2.7.0 - Use ::save instead.
public create ( )

get_zone_id() public method

Get zone ID
Deprecation: 2.7
public get_zone_id ( ) : integer | null
return integer | null Null if the zone does not exist. 0 is the default zone.

read() public method

Read a shipping zone by ID.
Deprecation: 2.7.0 - Init a shipping zone with an ID.
public read ( $zone_id )

update() public method

Update a zone.
Deprecation: 2.7.0 - Use ::save instead.
public update ( )