woocommerce_email_footer_text
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' ); /** * Function for `woocommerce_email_footer_text` filter-hook. * * @param string $email_footer_text * * @return string */ function wp_kama_woocommerce_email_footer_text_filter( $email_footer_text ){ // filter... return $email_footer_text; }
- $email_footer_text(string)
- -
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 64
apply_filters( 'woocommerce_email_footer_text', $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' ) ) );
woocommerce/includes/react-admin/emails/plain-merchant-notification.php 23
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/admin-cancelled-order.php 58
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-completed-order.php 60
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-new-account.php 46
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-reset-password.php 43
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
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-refunded-order.php 65
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-processing-order.php 60
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 59
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/customer-new-account-blocks.php 45
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/admin-new-order.php 58
echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
woocommerce/templates/emails/plain/admin-failed-order.php 58
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 214
add_filter( 'woocommerce_email_footer_text', array( $this, 'replace_placeholders' ) );