Minecraft name variable in form.. what is the variable name?
Mrs-Feathers opened this issue · 1 comments
Hello! i'm editing my woocommerse emails manually to simply include the player's username as one of the fields it shows in the order email and email to customer for an easier time keeping record if someone uses a bad minecraft username, they can show an email to our staff and they can fix it without having administrative access to the website or to woocommerce... and i'm having a bit of a hard time finding it in any of the information here.
so basically, very simply, my question is "what is the variable i need to write in the code to show the user's minecraft username in the order email?"
i love this plugin/wordpress mod and i hope this functionality is possible and maybe that finding an answer to this question will allow others to configure their setups in a similar way for ease of use
So if you have access to the order ID, you can get it by pulling the player_name
post meta. It's set here:
Would be something like:
get_post_meta( $order_id, 'player_id', true );