I have followed this instructions to add a custom order status for my WooCommerce Orders.
I can't find a way to create a custom action button that changes the order status to my custom status from the admin order list page like this screenshot:
I would like this custom action button to be shown for the orders that have a "Processing" status.
I could not find any answer in WooCommerce documentation.
Is there a hook to apply these buttons?
How can I add it in the function.php
?
Thank you
To resume, you have created a custom order status 'wc-parcial' (with the instructions code provided in your question) and you need to add a related action button to orders admin list.
You need to use a custom function hooked in
woocommerce_admin_order_actions
filter hookCode goes in function.php file of your active child theme (or theme) or also in any plugin file.
This code is tested and works. You will get that:
To resume, you have created a custom order status 'wc-parcial' (with the instructions code provided in your question) and you need to add a related action button to orders admin list.
The new code:
Code goes in functions.php file of your active child theme (or active theme).
Tested and works