WooCommerce admin order edit save post
问题 In WooCommerce, when I submit, how to catch a custom select field added in the order edit admin pages? I have added this custom select field in the file class-wc-meta-box-order-data.php . I get this: But I dont know how to catch or to save $_POST['vendor'] I have tried to add $_POST['vendor'] in wp-admin/post.php , but it doesn't work . This is the code that I have added: <select class="wc-customer-search" id="customer_user" name="customer_user" data-placeholder="<?php esc_attr_e( 'Guest',