Filtering for Objectionable Words | WordPress.org

[ad_1]

Hello Site Reviews Support Team,

As a class assignment I am developing a WordPress plugin designed to filter out specific objectionable words from user-generated content. My plugin aims to apply these filters dynamically to review content displayed on webpages by the Site Reviews plugin, replacing identified words with a placeholder (e.g., “******”) before the content is rendered to the user. Importantly, this filtering should occur without altering the original review content stored in the database.

Could you please advise on the correct hook or filter I should use to intercept and modify review text content before it is displayed on the webpage? I am specifically looking for a way to apply my objectionable word filters to both the review body and any other user-submitted text fields associated with reviews (such as the reviewer’s name), ensuring these modifications are made just-in-time during page rendering.

Additionally, if there are any particular considerations or best practices when using the recommended hook(s) for this purpose, I would greatly appreciate your insights.

Thank you very much for your assistance.

Best regards,

Mark

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer