Hi Yordan,
sure:
add_action(‘woocommerce_email_before_order_table’,’bbloomer_email_id_as_global’, 8, 4 );
function bbloomer_email_id_as_global( $order, $sent_to_admin, $plain_text, $email ){
$GLOBALS[’email_id’] = $email->id;
}
add_action( ‘woocommerce_order_item_meta_start’, ‘alx_add_content_specific_email’, 10, 4 );
function alx_add_content_specific_email($item_id, $item, $order, $plain_text ) {
$email_id = $GLOBALS[’email_id’];
if ( $email_id == ‘customer_completed_order’ ) {
echo ‘<p>Link zum Webinar: ‘;
the_field(‘webinar_link’,$item->get_product_id());
echo ‘ </p> ‘;
}
}