Title: gwdsupport's Replies | WordPress.org

---

# gwdsupport

  [  ](https://wordpress.org/support/users/gwdsupport/)

 *   [Profile](https://wordpress.org/support/users/gwdsupport/)
 *   [Topics Started](https://wordpress.org/support/users/gwdsupport/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gwdsupport/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gwdsupport/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gwdsupport/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gwdsupport/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gwdsupport/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gwolle Guestbook] Checking entry input before storing in guestbook backend](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/)
 *  Thread Starter [gwdsupport](https://wordpress.org/support/users/gwdsupport/)
 * (@gwdsupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/#post-11406740)
 * Hello again,
 * I have two questions:
 * **1. New hooks**
    I took a look at the new hooks, but I’m not fit enough to achieve
   what I want to do.
 * I’d like to do the following:
 * If the entry ($entry?) contains words from an array, reject the entry and put
   out an error message.
 * It would look something like that:
 *     ```
       $bad_words = array("list", "of", "bad", "words");
   
       foreach ($bad_words as $bad_word) {
       if (strpos($entry, $bad_word)!==false) {
       echo /or return/ "Your entry could not be sent.";
   
       }
       }
       ```
   
 * So I need some advice on this.
 * **2. Form Layout:**
 * Is it possible to have the “Hinweis-Text” (with the privacy policy or equivalent)
   before the “Send” Button ?
 * Thanks again for your help.
 * Best,
    Larry
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gwolle Guestbook] Checking entry input before storing in guestbook backend](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/)
 *  Thread Starter [gwdsupport](https://wordpress.org/support/users/gwdsupport/)
 * (@gwdsupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/#post-11393648)
 * Yes, I saw those possibilities.
 * However it was my understanding that the entries would be marked as spam but 
   still be in the backend to be “handled” by the moderator. And this is precisely
   what I want to avoid.
 * Maybe I’m missing something…
 * Being located in Germany, where the GDPR has everybody on their toes, I am a 
   bit uneasy with external anti-spam services as their privacy policies may not
   agree with the german requirements.
    -  This reply was modified 7 years, 4 months ago by [gwdsupport](https://wordpress.org/support/users/gwdsupport/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gwolle Guestbook] Checking entry input before storing in guestbook backend](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/)
 *  Thread Starter [gwdsupport](https://wordpress.org/support/users/gwdsupport/)
 * (@gwdsupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/#post-11393578)
 * I want to filter the input my own way and reject the entry altogether before 
   it reaches the backend in case of spam.
 * I prefer not to see the spam in the backend and sort it out there.
 * My goal is to minimize the task of the moderator.
 * Maybe I didn’t find the right way to do it with the hooks already available before
   your new extension…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gwolle Guestbook] Checking entry input before storing in guestbook backend](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/)
 *  Thread Starter [gwdsupport](https://wordpress.org/support/users/gwdsupport/)
 * (@gwdsupport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/checking-entry-input-before-in-guestbook-backend/#post-11393521)
 * Thank you very much.
 * I’ll take a look and give it a go in the next few days.
 * Best,
    Larry

Viewing 4 replies - 1 through 4 (of 4 total)