WordPress at a glance
function is not described


Events::is_merchant_email_notifications_enabled() protected WC 1.0

Checks if merchant email notifications are enabled.

{} It's a method of the class: Events{}

No Hooks.


true|false. Whether merchant email notifications are enabled.


// protected - for code of main (parent) or child class
$result = $this->is_merchant_email_notifications_enabled();

Code of Events::is_merchant_email_notifications_enabled() WC 5.2.2

protected function is_merchant_email_notifications_enabled() {
	// Check if the feature flag is disabled.
	if ( 'yes' !== get_option( 'woocommerce_merchant_email_notifications', 'no' ) ) {
		return false;

	// All checks have passed.
	return true;