0

I would like to rename the wordpress woo-commerce orders actions Processing order to survey. I am not good in wordpress. Can some one tell me how can I achieve this. I tried google its only giving me to add customer order actions.

pgems sri
  • 63
  • 8

1 Answers1

0

If you just want to change the display name then you have to use wc_order_statuses filter.

Here is the code:

function wh_process_to_survey($order_statuses)
{
    foreach ($order_statuses as $key => $status)
    {
        if ('wc-processing' === $key)
        {
            $order_statuses[$key] = _x('Survey', 'Order status', 'woocommerce');
        }
    }
    return $order_statuses;
}

add_filter('wc_order_statuses', 'wh_process_to_survey', 10, 1);

Code goes in functions.php file of your active child theme (or theme). Or also in any plugin php files.
Code is tested and works.

Hope this helps!

Raunak Gupta
  • 10,412
  • 3
  • 58
  • 97