WC_Legacy_Shipping_Zone::create
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. Use
::save instead.Create a zone.
Method of the class: WC_Legacy_Shipping_Zone{}
No Hooks.
Returns
null. Nothing (null).
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 10.5.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;
}
}