FriendlyCaptcha / friendly-captcha-wordpress

WordPress plugin for Friendly Captcha. Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
https://friendlycaptcha.com
19 stars 9 forks source link

Support for ACF forms #117

Open bestbean opened 5 months ago

bestbean commented 5 months ago

Please add support for ACF, ACF extended and / or ACF pro. These are popular extensions, but unfortunately only recaptcha is offered.

bestbean commented 5 months ago

Solved. Was a quite trivial task, thanks to the well-documented API. New /wp-content/plugins/acf-extended/includes/fields/field-friendlycaptcha.php based on field-recaptcha.php. I began with a new friendlycaptcha module (acfe/acfe.php), but because the input of the reCaptcha credentials is solved differently in ACFe, i have not pursued this path any further. Although that would be the right way.

So, it is only a temporary solution until next plugins update.

Files changed: /wp-content/plugins/friendly-captcha/modules/acfe/acfe.php /wp-content/plugins/friendly-captcha/includes/core.php /wp-content/plugins/acf-extended/acf-extended.php /wp-content/plugins/acf-extended/assets/js/acfe-input.js /wp-content/plugins/acf-extended/assets/js/acfe-input.min.js /wp-content/plugins/acf-extended/includes/fields/field-friendlycaptcha.php /wp-content/plugins/acf-extended/lang/acfe-fr_FR.po /wp-content/plugins/acf-extended/lang/acfe.pot