get_status()==’processing’ || $order->get_status()==’completed’){ $order->update_status(‘refunding’, __( ‘Refund Ordered’, ‘woocommerce’ )); } echo $no.$type.$order->get_status(); ?>