WC_Email::get_reply_to_enabled
Check if reply-to is enabled for outgoing emails.
Method of the class: WC_Email{}
Hooks from the method
Returns
true|false.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_reply_to_enabled();
WC_Email::get_reply_to_enabled() WC Email::get reply to enabled code WC 10.9.3
public function get_reply_to_enabled() {
/**
* Filter whether reply-to is enabled for emails.
*
* @since 10.4.0
* @param bool $enabled Whether reply-to is enabled.
* @param WC_Email $email WC_Email instance managing the email.
*/
$enabled = apply_filters( 'woocommerce_email_reply_to_enabled', 'yes' === get_option( 'woocommerce_email_reply_to_enabled', 'no' ), $this );
return (bool) $enabled;
}