<?php

namespace Rtc\PlantShopWC\Admin\Helpers;

class MiscHelper {

    public static function is_email_context(): bool {
        return did_action( 'woocommerce_email_header' )
            || doing_action( 'woocommerce_email_before_order_table' )
            || doing_action( 'woocommerce_email_after_order_table' )
            || doing_action( 'woocommerce_email_order_meta' )
            || doing_action( 'woocommerce_email_footer' );
    }
}
