WC_Shipping_Legacy_Local_Delivery::__construct()
Constructor.
Method of the class: WC_Shipping_Legacy_Local_Delivery{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Shipping_Legacy_Local_Delivery = new WC_Shipping_Legacy_Local_Delivery(); $WC_Shipping_Legacy_Local_Delivery->__construct();
WC_Shipping_Legacy_Local_Delivery::__construct() WC Shipping Legacy Local Delivery:: construct code WC 9.4.2
public function __construct() { $this->id = 'legacy_local_delivery'; $this->method_title = __( 'Local delivery (legacy)', 'woocommerce' ); /* translators: %s: Admin shipping settings URL */ $this->method_description = '<strong>' . sprintf( __( 'This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping zones</a>.', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) ) . '</strong>'; $this->init(); }