Change WordPress user roles and capabilities Forums How to or FAQ Restrict Role from Processing Refunds in WooCommerce Reply To: Restrict Role from Processing Refunds in WooCommerce

#2729
AGB
Participant

Thank you Vladimir for consistently providing such great support! That worked perfectly to hide the Refund button from showing for the role (sales) we specified in the code. However, in General Details part of order edit form, that role still has the ability to set the Order Status to be “Refunded”, which when saving order will proceed to change the order details, reflecting a full refund for whole order (products + shipping).

Is it also possible to hide (or block ability to select) the “Refunded” status from the Order Status drop-down in order edit form, for this particular role?

Thanks again.