Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since my website uses a lot of lead magnets and people always sign up for the same segment, I need a feature to not send emails to already confirmed contacts. (See #5)
For this I took the idea from the FAQ (Maybe we should only send the email, when the contact does not have the tags, that we would add in the success case?) but made it a bit more flexible.
To stop sending the emails, you need to enable the option in the plugin settings and configure the form action accordingly.
You can select for each form in the action configuration whether the tags, segments or a field of the contact should be compared with the success values from the action. There is now also the possibility to select a field for the status of the doi and what the value must be in case of a success. If the contact is recognized as confirmed, the email will not be sent, but the configured actions except logging and removing from DNC will be executed anyway.
Attention: The plugin can now be enabled and disabled in the plugin settings. By default, the plugin is disabled, which is why the DOI plugin will not be executed after an update.
Disclaimer: I am not a developer and created the feature with trial and error.