# Replace WooCommerce Texts Without a Translation Plugin

> Swaps specific WooCommerce texts, such as "Billing details" or "Proceed to checkout", for your own wording using a simple list.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, text, translation
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-replace-store-text/

## Code

```php
$wpide_store_text = array(
    // Original text => replacement.
    'Billing details'     => 'Your details',
    'Proceed to checkout' => 'Continue to checkout',
    'Related products'    => 'You may also like',
);

add_filter( 'gettext_woocommerce', function ( $translation, $text ) use ( $wpide_store_text ) {
    return isset( $wpide_store_text[ $text ] ) ? $wpide_store_text[ $text ] : $translation;
}, 20, 2 );
```

## Notes

The original text must match exactly, including capitals. Texts in blocks may come from JavaScript translations and are not affected.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Replace WooCommerce Texts Without a Translation Plugin" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
