WordPress at Your Fingertips
function is not described

WC_Legacy_Cart::ship_to_billing_address_only() public WC 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.

{} It's a 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()

Code of WC_Legacy_Cart::ship_to_billing_address_only() WC 5.7.1

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();
}