PHP 클래스 WC_Shipping_Zones

부터: 2.6.0
저자: WooThemes
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
delete_zone ( integer $zone_id ) Delete a zone using it's ID
get_shipping_method ( $instance_id ) : WC_Shipping_Meethod | boolean Get shipping zone using it's ID
get_zone ( integer $zone_id ) : WC_Shipping_Zone | boolean Get shipping zone using it's ID
get_zone_by ( string $by = 'zone_id', integer $id ) : WC_Shipping_Zone | boolean Get shipping zone by an ID.
get_zone_matching_package ( object $package ) : WC_Shipping_Zone Find a matching zone for a given package.
get_zones ( ) : array Get shipping zones from the database

메소드 상세

delete_zone() 공개 정적인 메소드

Delete a zone using it's ID
부터: 2.6.0
public static delete_zone ( integer $zone_id )
$zone_id integer

get_shipping_method() 공개 정적인 메소드

Get shipping zone using it's ID
부터: 2.6.0
public static get_shipping_method ( $instance_id ) : WC_Shipping_Meethod | boolean
리턴 WC_Shipping_Meethod | boolean

get_zone() 공개 정적인 메소드

Get shipping zone using it's ID
부터: 2.6.0
public static get_zone ( integer $zone_id ) : WC_Shipping_Zone | boolean
$zone_id integer
리턴 WC_Shipping_Zone | boolean

get_zone_by() 공개 정적인 메소드

Get shipping zone by an ID.
부터: 2.6.0
public static get_zone_by ( string $by = 'zone_id', integer $id ) : WC_Shipping_Zone | boolean
$by string zone_id or instance_id
$id integer
리턴 WC_Shipping_Zone | boolean

get_zone_matching_package() 공개 정적인 메소드

Find a matching zone for a given package.
부터: 2.6.0
public static get_zone_matching_package ( object $package ) : WC_Shipping_Zone
$package object
리턴 WC_Shipping_Zone

get_zones() 공개 정적인 메소드

Get shipping zones from the database
부터: 2.6.0
public static get_zones ( ) : array
리턴 array of arrays