Access the order object from woocommerce_order_details_after_order_table hook
In WooCommerce, I am making a custom merchant plugin and I have added this hook: add_action( 'woocommerce_order_details_after_order_table', 'track_me' ); Inside the track_me() function, I want to retrieve the order to do some things. The function does what I want when…