wc_ship_to_billing_address_only

See if we only ship to billing addresses.

Description

wc_ship_to_billing_address_only(); 

Usage

  1. if ( !function_exists( 'wc_ship_to_billing_address_only' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-order-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_ship_to_billing_address_only(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-order-functions.php  
  1. function wc_ship_to_billing_address_only() { 
  2. return 'billing_only' === get_option( 'woocommerce_ship_to_destination' );