WC_Shipping_Legacy_Free_Shipping::__construct()publicWC 1.0

Constructor.

Метод класса: WC_Shipping_Legacy_Free_Shipping{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WC_Shipping_Legacy_Free_Shipping = new WC_Shipping_Legacy_Free_Shipping();
$WC_Shipping_Legacy_Free_Shipping->__construct();

Код WC_Shipping_Legacy_Free_Shipping::__construct() WC 7.3.0

public function __construct() {
	$this->id           = 'legacy_free_shipping';
	$this->method_title = __( 'Free shipping (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();
}