Describe the bug
Some of our form integrations, including CF7 and WPForms, are calling both our AJAX and PHP submission handlers resulting in duplicate processes for cookie creation and conversion counts.
Site information
Popup Maker version: 1.12.0
WordPress version: 5.5.1
PHP version: 7.4.1
Proposed Solution
We should have a method in the abstract form integration class that will check if it's an AJAX or REST call. We then use that method within each form integration to determine if we should process the form submission.
Describe the bug
Some of our form integrations, including CF7 and WPForms, are calling both our AJAX and PHP submission handlers resulting in duplicate processes for cookie creation and conversion counts.
Site information
Popup Maker version: 1.12.0
WordPress version: 5.5.1
PHP version: 7.4.1
Proposed Solution
We should have a method in the abstract form integration class that will check if it's an AJAX or REST call. We then use that method within each form integration to determine if we should process the form submission.