Bug in the code
-
If you wonder why sweetcaptcha shows form even you have selected function “Omit captcha for registered users:”
Original lines would look like this:
Line 65
if ( get_option( ‘sweetcaptcha_form_ommit_users’ ) && isset($user_ID) && (int)$user_ID > 0 ) {and
Line 88
if ( get_option( ‘sweetcaptcha_form_ommit_users’ ) && isset($user_ID) && (int)$user_ID > 0 ) {If you want to get that function work properly just remove those extra m-letters on the word ommit. So new lines should look like this:
Line 65
if ( get_option( ‘sweetcaptcha_form_omit_users’ ) && isset($user_ID) && (int)$user_ID > 0 ) {and
Line 88
if ( get_option( ‘sweetcaptcha_form_omit_users’ ) && isset($user_ID) && (int)$user_ID > 0 ) {even you do all this it will show the captcha on the contact form 7 (if used). I would like to get option for that to hide it from the registered users.
Best Regards
Hakk1tushttps://www.ads-software.com/extend/plugins/sweetcaptcha-revolutionary-free-captcha-service/
- The topic ‘Bug in the code’ is closed to new replies.