title: WooCommerce: Rename, add and remove email templates in the order dropdown send email widget
body: <p>A few days ago I've asked a question how to rename the email templates in WooCommerce. Luckily a good member from Stackoverflow helped me with his answer. </p>
  
  <p>After going to the order overview I saw that the templates in the dropdown where I can sent emails manually are not renamed as you can see in the picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/oTaRC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oTaRC.png" alt="enter image description here"></a></p>
  
  <p>So to ask a full qualified question: How can I rename, add and remove email templates in this dropdown?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've found the code where the widget is created but I don't know how to hook in there to rename or add emails:</p>
  
  <pre><code>/**
       * Resend order emails
       */
      public function send_order_email_meta_box( $post ) {
          ?&gt;
          &lt;ul class="wpo_wcpdf_send_emails submitbox"&gt;
              &lt;li class="wide" id="actions"&gt;
                  &lt;select name="wpo_wcpdf_send_emails"&gt;
                      &lt;option value=""&gt;&lt;/option&gt;
                      &lt;?php
                      $mailer           = WC()-&gt;mailer();
                      $available_emails = apply_filters( 'woocommerce_resend_order_emails_available', array( 'new_order', 'cancelled_order', 'customer_processing_order', 'customer_completed_order', 'customer_invoice' ) );
                      $mails            = $mailer-&gt;get_emails();
                      if ( ! empty( $mails ) &amp;&amp; ! empty( $available_emails ) ) { ?&gt;
                          &lt;?php
                          foreach ( $mails as $mail ) {
                              if ( in_array( $mail-&gt;id, $available_emails ) &amp;&amp; 'no' !== $mail-&gt;enabled ) {
                                  echo '&lt;option value="send_email_' . esc_attr( $mail-&gt;id ) . '"&gt;' . esc_html( $mail-&gt;title ) . '&lt;/option&gt;';
                              }
                          } ?&gt;
                          &lt;?php
                      }
                      ?&gt;
                  &lt;/select&gt;
                  &lt;input type="submit" class="button save_order button-primary" name="save" value="&lt;?php esc_attr_e( 'Save order &amp; send email', 'woocommerce-pdf-invoices-packing-slips' ); ?&gt;" /&gt;
                  &lt;?php
                  $title = __( 'Send email', 'woocommerce-pdf-invoices-packing-slips' );
                  $url = wp_nonce_url( add_query_arg('wpo_wcpdf_action','resend_email'), 'generate_wpo_wcpdf' );
                  // printf('&lt;a href="%s" class="button wpo_wcpdf_send_email"&gt;&lt;span&gt;%s&lt;/span&gt;&lt;/a&gt;')
                  ?&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
          &lt;?php
      }
  </code></pre>