Based on Woocommerce - Add username to new order email subject line. I'm trying to change WooCommerce email subject lines. Тhe email which I receive as site administrator in my mail when have a ordering.
I'm trying to create the following structure
[Online store]Order(#....)Name,Second name, Total-...,SKU1, SKU2, SKU3...
I use this code but I don't know how to get the SKU for every each product in the order?
add_filter('woocommerce_email_subject_new_order', 'change_admin_email_subject', 1, 2);
function change_admin_email_subject( $subject, $order ) {
global $woocommerce;
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
$subject = sprintf( '[%s] Order (# %s) от %s %s Total-%u EU. %s ', $blogname, $order->id,
$order->billing_first_name, $order->billing_last_name, $order->order_total, $order->...);
return $subject;
}