Developers

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

Next Steps

  • Translation – Translate the plugin into additional languages using Loco Translate or WPML.
  • Setup & Configuration – Review all available settings and defaults.

How to change the return status instructions for customer

Use the customer_return_status_instructions filter to customise the instructions shown to the customer at each return status stage. Add...

How to change the exchange status instructions for customer

Use the customer_exchange_status_instructions filter hook to customise the instruction text shown to customers for each exchange status —...

How to Modify Recipient Email for Return and Exchange Requests

Use the rwc_return_request_recipient_email and rwc_exchange_request_recipient_email filters to change which email addresses receive return and exchange request notifications —...

Retrieving Return and Exchange Order Details

Returns for WooCommerce exposes two PHP functions that let you query return and exchange data for a given...

How to change the “I’ll Keep This Item” label

Follow these steps to change the "I'll Keep This Item" wording shown on the return/exchange screen using the...

How to change the Exchange Request success message

Follow these steps to change the success message displayed after a customer submits an Exchange or Refund request...

How to change the “Return” label to “Refund” (or any custom text)

Follow these steps to change the "Return" wording used throughout the plugin—such as buttons, labels, and order actions—to...

How to change the child order status during an Exchange request

Follow these steps to change the default status of the child order created when a customer submits an...

How to change the Return Window start date to a selected Order Status

By default, the Returns & Exchanges plugin calculates the return eligibility window based on the Order Date. Use...