woocommerce_email_footer_text filter-hookWC 4.0.0

Provides control over the email footer text used for most order emails.

Usage

add_filter( 'woocommerce_email_footer_text', 'wp_kama_woocommerce_email_footer_text_filter', 10, 2 );

/**
 * Function for `woocommerce_email_footer_text` filter-hook.
 * 
 * @param string $email_footer_text 
 * @param        $email             
 *
 * @return string
 */
function wp_kama_woocommerce_email_footer_text_filter( $email_footer_text, $email ){

	// filter...
	return $email_footer_text;
}
$email_footer_text(string)
-
$email
-

Changelog

Since 4.0.0 Introduced.

Where the hook is called

In file: /templates/emails/email-footer.php
woocommerce_email_footer_text
woocommerce/templates/emails/email-footer.php 67
apply_filters( 'woocommerce_email_footer_text', $email_footer_text, $email )
woocommerce/templates/emails/plain/admin-failed-order.php 67
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-pos-refunded-order.php 116
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ), $email ) );
woocommerce/templates/emails/plain/customer-fulfillment-deleted.php 73
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-note.php 67
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-reset-password.php 55
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-refunded-order.php 78
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/admin-cancelled-order.php 67
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-stock-notification-verified.php 47
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/templates/emails/plain/customer-pos-completed-order.php 109
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ), $email ) );
woocommerce/templates/emails/plain/customer-completed-order.php 66
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/admin-new-order.php 67
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-stock-notification.php 47
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/templates/emails/plain/customer-fulfillment-updated.php 75
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-on-hold-order.php 68
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-new-account.php 61
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-fulfillment-created.php 73
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-stock-notification-verify.php 47
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/templates/emails/plain/customer-invoice.php 93
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-failed-order.php 75
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-processing-order.php 69
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/includes/react-admin/emails/plain-admin-report-export-download.php 19
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );

Where the hook is used in WooCommerce

woocommerce/includes/class-wc-emails.php 257
add_filter( 'woocommerce_email_footer_text', array( $this, 'replace_placeholders' ) );
woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 259
add_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1, 2 );
woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 269
remove_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1 );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 393
add_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1, 2 );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 403
remove_filter( 'woocommerce_email_footer_text', array( $this, 'replace_footer_placeholders' ), 1 );