WC_Shipping_Zone_Data_Store_Interface::get_zone_id_from_package()
Find a matching zone ID for a given package.
Method of the class: WC_Shipping_Zone_Data_Store_Interface{}
No Hooks.
Return
Int
.
Usage
$WC_Shipping_Zone_Data_Store_Interface = new WC_Shipping_Zone_Data_Store_Interface(); $WC_Shipping_Zone_Data_Store_Interface->get_zone_id_from_package( $package );
- $package(object) (required)
- Zone package object.
WC_Shipping_Zone_Data_Store_Interface::get_zone_id_from_package() WC Shipping Zone Data Store Interface::get zone id from package code WC 9.4.2
public function get_zone_id_from_package( $package );