woocommerce_order_get_formatted_billing_address
Filter orders formatted billing address.
Usage
add_filter( 'woocommerce_order_get_formatted_billing_address', 'wp_kama_woocommerce_order_get_formatted_billing_address_filter', 10, 3 ); /** * Function for `woocommerce_order_get_formatted_billing_address` filter-hook. * * @param string $address Formatted billing address string. * @param array $raw_address Raw billing address. * @param WC_Order $order Order data. @since 3.9.0 * * @return string */ function wp_kama_woocommerce_order_get_formatted_billing_address_filter( $address, $raw_address, $order ){ // filter... return $address; }
- $address(string)
- Formatted billing address string.
- $raw_address(array)
- Raw billing address.
- $order(WC_Order)
- Order data. @since 3.9.0
Changelog
Since 3.8.0 | Introduced. |
Where the hook is called
woocommerce_order_get_formatted_billing_address
woocommerce/includes/class-wc-order.php 994
return apply_filters( 'woocommerce_order_get_formatted_billing_address', $address ? $address : $empty_content, $raw_address, $this );