| 开发者 | dlit |
|---|---|
| 更新时间 | 2026年8月30日 23:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Add this tag in your CF7 form (the name, e.g. captcha-1, lets CF7 show the validation error next to the field):
[math_captcha captcha-1]
Optional flags (no colons):
[math_captcha captcha-1 simple] - force compact one-line layout
[math_captcha captcha-1 full] - force full layout with description
[math_captcha captcha-1 light] - force light text mode
[math_captcha captcha-1 dark] - force dark text mode
[math_captcha captcha-1 id:my-id] - set a custom HTML id on the input
[math_captcha captcha-1 id:my-id simple] - combine id + compact layout
[math_captcha captcha-1 simple light] - combine compact + light text mode
[math_captcha captcha-1 id:my-id full dark] - combine id + full + dark text mode
Yes, automatically. Tokens are stored via the WordPress Transients API, so if your site uses a persistent object-cache drop-in (for example the "Redis Object Cache" plugin), tokens live in Redis/Memcached instead of the database with no configuration. The Settings > Math Captcha page shows which storage is currently in use.
Each captcha embeds a single-use token in the page HTML. If a full-page cache serves the same cached page to many visitors, only the first successful submission is accepted; later visitors must reload past the cache. Exclude pages with comment forms from full-page caching, or keep cache lifetimes short (under 30 minutes).
light and dark.simple and full.