Customize WooCommerce Email Footer Text
Replaces the default WooCommerce email footer text with your brand name and site URL using a simple filter.
PHPby SnipCraft
php
<?php
if ( ! function_exists( 'scseed_wc_custom_email_footer' ) ) {
function scseed_wc_custom_email_footer( $footer_text ) {
$site_name = get_bloginfo( 'name' );
$site_url = home_url( '/' );
return sprintf(
'%s — <a href="%s" style="color:#96588a;">%s</a>',
esc_html( $site_name ),
esc_url( $site_url ),
esc_html( wp_parse_url( $site_url, PHP_URL_HOST ) )
);
}
add_filter( 'woocommerce_email_footer_text', 'scseed_wc_custom_email_footer' );
}#branding#email#footer#notifications#woocommerce