WC_Legacy_Cart::ship_to_billing_address_only()publicWC 1.0

Deprecated from version 2.5.0 in favor to wc_ship_to_billing_address_only(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Sees if we need a shipping address.

Method of the class: WC_Legacy_Cart{}

No Hooks.

Return

true|false.

Usage

$WC_Legacy_Cart = new WC_Legacy_Cart();
$WC_Legacy_Cart->ship_to_billing_address_only();

Changelog

Deprecated since 2.5.0 in favor to wc_ship_to_billing_address_only()

WC_Legacy_Cart::ship_to_billing_address_only() code WC 8.9.0

public function ship_to_billing_address_only() {
	wc_deprecated_function( 'WC_Cart::ship_to_billing_address_only', '2.5', 'wc_ship_to_billing_address_only' );
	return wc_ship_to_billing_address_only();
}