woocommerce_email_reply_to_address
Filter the reply-to address for emails.
Usage
add_filter( 'woocommerce_email_reply_to_address', 'wp_kama_woocommerce_email_reply_to_address_filter', 10, 3 );
/**
* Function for `woocommerce_email_reply_to_address` filter-hook.
*
* @param string $reply_to_email Reply-to email address.
* @param WC_Email $email WC_Email instance managing the email.
* @param string $default_email Default reply-to email address.
*
* @return string
*/
function wp_kama_woocommerce_email_reply_to_address_filter( $reply_to_email, $email, $default_email ){
// filter...
return $reply_to_email;
}
- $reply_to_email(string)
- Reply-to email address.
- $email(WC_Email)
- WC_Email instance managing the email.
- $default_email(string)
- Default reply-to email address.
Changelog
| Since 10.4.0 | Introduced. |
Where the hook is called
woocommerce_email_reply_to_address
woocommerce/includes/emails/class-wc-email.php 1104
$reply_to_email = apply_filters( 'woocommerce_email_reply_to_address', get_option( 'woocommerce_email_reply_to_address', '' ), $this, $reply_to_email );