How to add purchase note to WooCommerce order email

During checkout on WooCommerce, customer can add a note. This note is visible for admins on order edit screen of WordPress admin. After placing the order, customer receives an email with order details. This email does not contain that purchase not. But did you ever needed to show this note in the order emails? We can achieve that using woocommerce_email_order_items_args filter.

function careless_add_notes_to_wc_emails( $args ) {
    $args['show_purchase_note'] = true;

    return $args;
}
add_filter( 'woocommerce_email_order_items_args', 'careless_add_notes_to_wc_emails' );

Code goes in the functions.php file of your active theme.