Advertisement
BakerMan

Events Community / Change Evil Spam Error Msg

Sep 13th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. function changeEvilSpammerMsg($errors) {
  2.     if (is_array($errors) and count($errors) === 1) {
  3.         if ($errors[0]['message'] === 'Please check the box below to prove you are not an evil spammer.')
  4.             $errors[0]['message'] = 'Anti spam message of your choosing';
  5.     }
  6.     return $errors;
  7. }
  8.  
  9. add_filter('tribe_community_events_form_errors', 'changeEvilSpammerMsg');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement