title: How do I get the "text" value from a dropdown list as an email notification?
body: <p>Thanks to some help, I've created a dropdown list on the checkout page of my Woocommerce site. It works beautifully but on my email notification, it shows the code and not the value of the selection. Eg: &quot;My Marketer: mariaMarais&quot; instead of &quot;My Marketer: Maria Marais - Natal.&quot; How can I change it to show the string and not the code?</p>
  <pre><code>    // add marketer list
  
  //* Add select field to the checkout page
  add_action('woocommerce_before_order_notes', 'dd_add_select_two_checkout_field');
  function dd_add_select_two_checkout_field( $checkout ) {
      woocommerce_form_field( 'myquestion', array(
          'type'          =&gt; 'select',
          'class'         =&gt; array( 'select2-wrapper' ),
          'label'         =&gt; __( 'Please select your marketer.' ),
          'required'      =&gt; true,
          'input_class'   =&gt; array( 'add-select2' ),
          'options'       =&gt; array( // added extra for effect.
              'headoffice'    =&gt; __( 'Head Office', 'wps' ),
              'mariaMarais'   =&gt; __( 'Maria Marais - Natal', 'wps' )
          )
      ),
      $checkout-&gt;get_value( 'myquestion' ));
      wc_enqueue_js( &quot;$( '.add-select2' ).selectWoo(); &quot;);
  }
  
  //* Update the order meta with field value
   add_action('woocommerce_checkout_update_order_meta', 'wps_select_checkout_field_update_order_meta');
   function wps_select_checkout_field_update_order_meta( $order_id ) {
  
     if ($_POST['myquestion']) update_post_meta( $order_id, 'myquestion', esc_attr($_POST['myquestion']));
  
   }
  
   //* Display field value on the order edition page
  add_action( 'woocommerce_admin_order_data_after_billing_address', 'wps_select_checkout_field_display_admin_order_meta', 10, 1 );
  function wps_select_checkout_field_display_admin_order_meta($order){
  
    echo '&lt;p&gt;&lt;strong&gt;'.__('Found by').':&lt;/strong&gt; ' . get_post_meta( $order-&gt;id, 'myquestion', true ) . '&lt;/p&gt;';
  
  }
  
  //* Add selection field value to emails
  add_filter('woocommerce_email_order_meta_keys', 'wps_select_order_meta_keys');
  function wps_select_order_meta_keys( $keys ) {
  
    $keys['My Marketer:'] = 'myquestion';
    return $keys;
  
  }
  </code></pre>