woocommerce_order_formatted_billing_address хук-фильтрWC 1.0

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
-

Где вызывается хук

WC_Order::get_formatted_billing_address()
woocommerce_order_formatted_billing_address
woocommerce/includes/class-wc-order.php 918
$raw_address = apply_filters( 'woocommerce_order_formatted_billing_address', $this->get_address( 'billing' ), $this );

Где используется хук в WooCommerce

Использование не найдено.