Problem:
Filtering User Posts for Foul Language using Toolset form
Solution:
There is no native solution available to check for foul words.
But a possible workaround would be using the Toolset Form's hook: cred_before_save_data
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_before_save_data
You can make a list of foul words and check against the submitted content and if found remove those words and then assign the filtered content to the field.
Relevant Documentation:
Following links may help you to build such filter:
- https://www.hashbangcode.com/article/simple-swear-filter-php
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by 3 years, 6 months ago.
Assisted by: Minesh.