woocommerce_order_formatted_billing_address
Get a formatted billing address for the order.
Использование
add_filter( 'woocommerce_order_formatted_billing_address', 'wp_kama_woocommerce_order_formatted_billing_address_filter', 10, 2 );
/**
* Function for `woocommerce_order_formatted_billing_address` filter-hook.
*
* @param string $empty_content Content to show if no address is present. @since 3.3.0.
* @param $that
*
* @return string
*/
function wp_kama_woocommerce_order_formatted_billing_address_filter( $empty_content, $that ){
// filter...
return $empty_content;
}
- $empty_content(строка)
- Content to show if no address is present. @since 3.3.0.
- $that
- -
Где вызывается хук
woocommerce_order_formatted_billing_address
woocommerce/includes/class-wc-order.php 1043
$raw_address = apply_filters( 'woocommerce_order_formatted_billing_address', $this->get_address( 'billing' ), $this );