WooCommerce get all order notes of an order using order ID

I googled this same topic, but nothing found to be easy, so just writing one. The WooCommerce order notes are actually stored as comments to the order’s post. So I just saw the WooCommerce core and got an idea to make custom function for it, you can find it below

In WooCommerce all order notes can be looped pragmatically, using order ID as parameter.
Add this following code in functions.php

You need to call the function like

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.