That is correct.
If the Cookie Notice Plugin is installed – this should work.
If you use caching plugins in WordPress, this will most likely not work.
In my case, the optin setting is cached as well. So the generated html code in the template is from the cache and not on a per user base.
Try to turn caching plugin off if you have any active plugin. Then check the result again.
Here are my changes to /wp-math-captcha/includes/class-cookie-session.php
Function ‘init_session’
After:
if ( is_admin () )
return;
// CHANGE START – Check if cookies are allowed
if (function_exists(‘cn_cookies_accepted’) === true
&& cn_cookies_accepted() !== true
)
{
return;
}
// CHANGE END