Skip to main content

Review Censoring

If you have words that you're not able to display on your site, you are able to censor these

Written by Kai Jensen
Updated over 8 months ago

If you have words that you're not able to display on your site, you are able to censor them to prevent them from showing on your widgets!


Requirements

✅ Active REVIEWS.io Account


Instructions ⚙️

Within the Product Review Widget code, you will need to add the following line to the product_review block of the code as it only applies to product reviews only

wordFilter: "[Any words that need censoring entered here - separated by a Comma: Word1,Word2,Word3]"

Note: This feature only censors individual words and not phrases!

Within this example, we are censoring the word "censored" by default the review will display all content visible 👇

If we update the code to include the wordFilter setting:

product_review: {
// Display product reviews for multiple SKUs separated by semicolons
sku: "",
hide_if_no_results: false,
wordFilter: "censored",
}

This will prevent the specified word from displaying on the site 🎉

Did this answer your question?