Automattic\WooCommerce\Admin
Events::is_merchant_email_notifications_enabled() protected WC 1.0
Checks if merchant email notifications are enabled.
{} Это метод класса: Events{}
Хуков нет.
Возвращает
true/false. Whether merchant email notifications are enabled.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_merchant_email_notifications_enabled();
Код Events::is_merchant_email_notifications_enabled() Events::is merchant email notifications enabled WC 5.0.0
protected function is_merchant_email_notifications_enabled() {
// Check if the feature flag is disabled.
if ( 'yes' !== get_option( 'woocommerce_merchant_email_notifications', 'yes' ) ) {
return false;
}
// All checks have passed.
return true;
}