pixeltrix/woocommerce — comment on commit 5a3329f7618fed00ef34cd936def597ada6145f5
File:  line 0
By pixeltrix:

The reason I did this way is so that a theme author could declare their own `woocommerce_show_messages` to customize the HTML output but if you don't want that, then yes we can simply call `$woocommerce->show_messages();`. The alternative is to move the `show_messages` code to a template but my personal feeling is that the `Woocommerce` class shouldn't be dealing directly with HTML generation (the only other methods to generate HTML are `wp_head` and `output_inline_js`).