1. Support
  2. Knowledge Base
  3. Extending & Styling
  4. Quick translate or replace single words

Quick translate or replace single words

In general our plugin is ready to be translated in your language. Additionally you can edit certain text strings (e.g. sale ribbon or button text) easily via plugin settings.

Anyway there might be some situation where you don’t want to make use of our prepared translations or only want to replace single words.

Therefore we prepared a filter which can be used to quickly replace single terms.

In this example we’re going to update the text “Reviews” to “Amazon Reviews”.

Making use of our filter

The filter looks as follows:

add_filter( 'aawp_replace_translations', function( $translations ) {

    $translations['%s Reviews'] = '%s Amazon Reviews';

    return $translations;


After adding our little PHP snippet the output looks as follows:

Frequently asked text replacements

Here you can find more examples of frequently asked text replacements which can be done by using the filter above:

Description String to be replaced
“Reviews” label %s Reviews

We will to update this collection continuously.

Was this article helpful?

Related Articles

Stay in touch with us!

Join our newsletter and we let you know about new theme releases,
as well as important updates and discounts.

Latest news from our blog: Our Plans for MH Themes & MH Magazine in 2024 (25. April 2024)