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 a custom label like “Refund”, “Request Refund”, or any text you prefer.

1. Open your theme’s functions.php file

Navigate to your child theme’s directory and locate the functions.php file.
If it does not exist, create one.

2. Insert the following code snippet

Copy and paste the following snippet into your functions.php file:

/*
* Change the “Return” label to “Refund” or a custom term
*/

add_filter( 'zorem_returns_label_text', 'change_return_label_text', 10, 2 );

function change_return_label_text( $text, $context ) {

    // Change label for item-level Return button
    if ( $context === 'item' ) {
        return esc_html__( 'Refund', 'zorem-returns-exchanges' );
    }

    // Change label for order-level Return button
    if ( $context === 'order' ) {
        return esc_html__( 'Refund Order', 'zorem-returns-exchanges' );
    }

    // Default: keep original text if no custom context
    return $text;
}

3. Save the file

Save the modifications to your functions.php file.

By following these steps, you’ve successfully customized the “Return” label across the plugin to match your store’s preferred terminology.
Users who do not apply this filter will keep the default “Return” text.

$129.00

Billed annually

Buy Now