wc_ship_to_billing_address_only()
See if we only ship to billing addresses.
Хуков нет.
Возвращает
true|false
.
Использование
wc_ship_to_billing_address_only();
Код wc_ship_to_billing_address_only() wc ship to billing address only WC 8.7.0
function wc_ship_to_billing_address_only() { return 'billing_only' === get_option( 'woocommerce_ship_to_destination' ); }