This section covers the hooks, filters, and PHP functions available to developers who need to customise the behaviour of Returns for WooCommerce beyond what the settings UI provides. All code snippets should be added to your child theme’s functions.php file or a site-specific snippets plugin.
Text domain: zorem-returns-exchanges
Available Hooks & Filters
- How to change the return status instructions for customer – Filter:
customer_return_status_instructions. Customise the instructions displayed to the customer at each return status. - How to change the exchange status instructions for customer – Filter:
customer_exchange_status_instructions. Customise the instructions shown at each exchange status. - How to Modify Recipient Email for Return and Exchange Requests – Filters:
rwc_return_request_recipient_email,rwc_exchange_request_recipient_email. Route notifications to different addresses based on product, vendor, or order data. - Retrieving Return and Exchange Order Details – Functions:
get_data_by_order_id(),get_exchange_data_by_order_id(). Query return and exchange data programmatically. - How to change the “I’ll Keep This Item” label – Filter:
zorem_returns_keep_item_text. Rename the keep-item button. - How to change the Exchange Request success message – Filter:
zorem_returns_success_message_text. Customise the confirmation message shown after a return or exchange is submitted. - How to change the “Return” label to “Refund” (or any custom text) – Filter:
zorem_returns_label_text. Rename Return buttons and labels across the plugin. - How to change the child order status during an Exchange request – Filter:
rwc_exchange_child_order_status. Change the default Processing status applied to exchange child orders. - How to change the Return Window start date to a selected Order Status – Filter:
zorem_return_window_start_status. Start the return eligibility window from a specific order status rather than the order date.
Next Steps
- Translation – Translate the plugin into additional languages using Loco Translate or WPML.
- Setup & Configuration – Review all available settings and defaults.