Skip to content

Add support for elementor atomic forms - #173

Open
despokd wants to merge 1 commit into
FriendlyCaptcha:mainfrom
despokd:elementor-atomic-form
Open

Add support for elementor atomic forms#173
despokd wants to merge 1 commit into
FriendlyCaptcha:mainfrom
despokd:elementor-atomic-form

Conversation

@despokd

@despokd despokd commented Jul 30, 2026

Copy link
Copy Markdown

Hi, I saw the integration supports only Elementor Pro Forms instead of also the new atomic froms of Elementor v4.
Sadly Elementor only have a native integration for Askiment, which works without a Captcha field, and sends only fields from there atomic form fields.
Then they support there own ReCaptcha integration at Atomic Forms this, will be hopefully easier to implement, without a MutationObserver.

This integration registers an atomic widget "Friendly Captcha" to drag into forms. It uses a similar logic as the Elementor form field integration. There are TODO comments implemented to revisit this code when Elementor finally uses its native ReCaptcha integration also for atomic forms.

image image

Thank you very much.

AI Summary

This pull request introduces a new FriendlyCaptcha widget for Elementor's Atomic Widgets system, improving integration and spam protection for forms. The main changes are the addition of a custom atomic widget class, a Twig template for editor compatibility, and the necessary registration logic.

Elementor Atomic Widget Integration:

  • Added a new PHP class Elementor_Friendlycaptcha_Atomic_Widget implementing a FriendlyCaptcha atomic widget, including rendering logic, spam checking, and proper interaction with Elementor's form system.
  • Registered the new atomic widget with Elementor by hooking into the appropriate action.

Editor Compatibility and UI:

  • Added a Twig template atomic-widget.html.twig to render a placeholder in the Elementor editor, preventing issues caused by rendering the live widget in the editor environment.

These changes ensure that FriendlyCaptcha can be used seamlessly as an atomic widget in Elementor forms, with proper spam protection and editor compatibility.

@merlinfuchs
merlinfuchs self-requested a review July 30, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant