woocommerce_email_reply_to_enabled
Filter whether reply-to is enabled for emails.
Usage
add_filter( 'woocommerce_email_reply_to_enabled', 'wp_kama_woocommerce_email_reply_to_enabled_filter', 10, 2 );
/**
* Function for `woocommerce_email_reply_to_enabled` filter-hook.
*
* @param bool $enabled Whether reply-to is enabled.
* @param WC_Email $email WC_Email instance managing the email.
*
* @return bool
*/
function wp_kama_woocommerce_email_reply_to_enabled_filter( $enabled, $email ){
// filter...
return $enabled;
}
- $enabled(true|false)
- Whether reply-to is enabled.
- $email(WC_Email)
- WC_Email instance managing the email.
Changelog
| Since 10.4.0 | Introduced. |
Where the hook is called
woocommerce_email_reply_to_enabled
woocommerce/includes/emails/class-wc-email.php 1066
$enabled = apply_filters( 'woocommerce_email_reply_to_enabled', 'yes' === get_option( 'woocommerce_email_reply_to_enabled', 'no' ), $this );