Send custom notification In Woocommerce edit order pages repetition issue
I created "email notifier for order tracking" plugin for woocommerce. All works fine and when I save tracking number, it sends an email to customer. But when I save another field in order page, it sends email again. How can I fix it? add_action('add_meta_boxes', 'kargo_takip'); function kargo_takip() { add_meta_box('kargo_takip_meta_box', 'Kargo Takip', 'kargo_takip_meta_box_ekle', 'shop_order', 'side', 'high'); } function kargo_takip_meta_box_ekle() { global $post; $meta_field_data = get_post_meta($post->ID, '_kargo_takip', true) ? get_post_meta($post->ID, '_kargo_takip', true) : ''; echo '