WP_Query filters

Assuming you want to keep the WP_Query exactly the same there’s 2 ways I can think of which you could do this using various loops. 1) Grab the first post from the posts Array. WP_Query has a bunch of properties and methods one of which is the posts array. if( $the_query->have_posts() ) { // Grab … Read more

Woocommerce extend tax report with custom column

In this case you may consider using the WooCommerce Admin extension. WC-Admin reports are extendable so it is possible to customize them and even create new ones from scratch. You’ll find some code examples and guidelines in the official extensions repo: https://github.com/woocommerce/woocommerce-admin/tree/master/docs/examples/extensions Check the add-report to create a new report and the table-column to add … Read more