woocommerce_email_header_image_url filter-hookWC 10.7.0

Filter the URL used for the email header image/logo link.

Return an empty string to disable the link.

Usage

add_filter( 'woocommerce_email_header_image_url', 'wp_kama_woocommerce_email_header_image_url_filter' );

/**
 * Function for `woocommerce_email_header_image_url` filter-hook.
 * 
 * @param string $url The URL to link to.
 *
 * @return string
 */
function wp_kama_woocommerce_email_header_image_url_filter( $url ){

	// filter...
	return $url;
}
$url(string)
The URL to link to.
Default: site home URL

Changelog

Since 10.7.0 Introduced.

Where the hook is called

In file: /templates/emails/email-header.php
woocommerce_email_header_image_url
woocommerce/templates/emails/email-header.php 35
$header_image_url = apply_filters( 'woocommerce_email_header_image_url', home_url() );

Where the hook is used in WooCommerce

Usage not found.