WC_Legacy_Shipping_Zone::create()
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use
::save
instead.Create a zone.
Method of the class: WC_Legacy_Shipping_Zone{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Legacy_Shipping_Zone = new WC_Legacy_Shipping_Zone(); $WC_Legacy_Shipping_Zone->create();
Changelog
Deprecated since 3.0.0 | - Use ::save instead. |
WC_Legacy_Shipping_Zone::create() WC Legacy Shipping Zone::create code WC 7.7.0
public function create() { wc_deprecated_function( 'WC_Shipping_Zone::create', '3.0', 'WC_Shipping_Zone::save instead.' ); $data_store = WC_Data_Store::load( 'shipping-zone' ); try { $data_store->create( $this ); } catch ( Exception $e ) { return false; } }