woocommerce_api_customer_billing_address
Get customer billing address fields.
Usage
add_filter( 'woocommerce_api_customer_billing_address', 'wp_kama_woocommerce_api_customer_billing_address_filter' ); /** * Function for `woocommerce_api_customer_billing_address` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_api_customer_billing_address_filter( $array ){ // filter... return $array; }
- $array
- -
Changelog
Since 2.2 | Introduced. |
Where the hook is called
woocommerce_api_customer_billing_address
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 250-262
$billing_address = apply_filters( 'woocommerce_api_customer_billing_address', array( 'first_name', 'last_name', 'company', 'address_1', 'address_2', 'city', 'state', 'postcode', 'country', 'email', 'phone', ) );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 249-261
$billing_address = apply_filters( 'woocommerce_api_customer_billing_address', array( 'first_name', 'last_name', 'company', 'address_1', 'address_2', 'city', 'state', 'postcode', 'country', 'email', 'phone', ) );