There is some errors in your code… Try the following revisited code: add_action( 'restrict_manage_posts' ...
Add a new field to the checkout; Add that new field to the order.
To filter orders by meta fields on admin orders list, you will use the following ( where you will define in the 1st function below the metakey / label ...
If you select one to filter your orders, you'll see that only orders placed with that payment gateway will be shown rather than the complete order list ...
The following functions will add an additional filter dropdown to admin order list, allowing you to filter orders based on order items product post ...
You won't need any PHP snippets – just a quick plugin that turns your order list into an intuitive and easy-to-use spreadsheet so that you can do all the filtering ...
Click on that dropdown and you'll see a list of all products. Select a product and click on "Filter" button. It'll show up the orders which contains only that specific ...
Customize WooCommerce admin orders list: add custom columns; add multiple status filtering.
Sorting and filtering options: Advanced search options include a filtered dropdown list. (Customers can filter by category, tag, color, or product size.) Multiple ...
Every WooCommerce Orders list has columns that highlight various details about the order. While these columns could be easily remove ...