Document Campaign membership change lifecycle event#507
Closed
promptless-for-oss wants to merge 2 commits into
Closed
Document Campaign membership change lifecycle event#507promptless-for-oss wants to merge 2 commits into
promptless-for-oss wants to merge 2 commits into
Conversation
Add documentation for the new Campaign lifecycle event that fires after a Campaign action modifies a Contact's Campaign membership. This allows plugins to hook into membership changes. Relates to mautic/mautic#16172
|
|
||
| Mautic dispatches lifecycle events at various points during Campaign processing. Plugins can subscribe to these events to extend Campaign functionality. | ||
|
|
||
| Membership change event |
Contributor
Author
There was a problem hiding this comment.
Added documentation for ON_AFTER_CAMPAIGN_ACTION_CHANGE_MEMBERSHIP event constant from CampaignEvents.php and its dispatch in CampaignActionChangeMembershipSubscriber.php. The listener receives a CampaignEvent object containing the modified Campaign.
Source: mautic/mautic#16172
adiati98
requested changes
May 31, 2026
Contributor
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the suggestions
Apply style fixes per reviewer suggestions: - Capitalize "Points" per Mautic feature naming convention - Change "functionality" to "capability" - Convert passive voice "was modified" to active voice
Contributor
Author
|
Thanks for the review! I've addressed both suggestions:
The changes have been pushed to the PR branch. |
Member
|
I closed the Mautic PR as this event was a duplicate of another existing event. So closing this as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Open this suggestion in Promptless to view citations and reasoning process
Documents the new ON_AFTER_CAMPAIGN_ACTION_CHANGE_MEMBERSHIP event added in mautic/mautic#16172. This event allows plugins to hook into Campaign membership changes when a Campaign action adds or removes a Contact from another Campaign.
Trigger Events
Tip: Use Slack message actions (⋯ menu → Update Docs) to capture doc updates without interrupting conversations 💬