woocommerce_email_preview_dummy_address filter-hookWC 9.6.0

A dummy address used in email preview as billing and shipping one.

Usage

add_filter( 'woocommerce_email_preview_dummy_address', 'wp_kama_woocommerce_email_preview_dummy_address_filter', 10, 2 );

/**
 * Function for `woocommerce_email_preview_dummy_address` filter-hook.
 * 
 * @param array  $address    The dummy address.
 * @param string $email_type The email type to preview.
 *
 * @return array
 */
function wp_kama_woocommerce_email_preview_dummy_address_filter( $address, $email_type ){

	// filter...
	return $address;
}
$address(array)
The dummy address.
$email_type(string)
The email type to preview.

Changelog

Since 9.6.0 Introduced.

Where the hook is called

EmailPreview::get_dummy_address()
woocommerce_email_preview_dummy_address
woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php 334
return apply_filters( 'woocommerce_email_preview_dummy_address', $address, $this->email_type );

Where the hook is used in WooCommerce

Usage not found.