Skip to content

Document Campaign membership change lifecycle event#507

Closed
promptless-for-oss wants to merge 2 commits into
mautic:7.0from
Promptless:promptless/pr-16172-membership-change-event
Closed

Document Campaign membership change lifecycle event#507
promptless-for-oss wants to merge 2 commits into
mautic:7.0from
Promptless:promptless/pr-16172-membership-change-event

Conversation

@promptless-for-oss
Copy link
Copy Markdown
Contributor

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 💬

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
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@promptless-for-oss please address the suggestions

Comment thread docs/plugin_extensions/campaigns.rst Outdated
Comment thread docs/plugin_extensions/campaigns.rst Outdated
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
@promptless-for-oss
Copy link
Copy Markdown
Contributor Author

Thanks for the review! I've addressed both suggestions:

  1. Fixed the Vale warning by capitalizing "Points" and changing "functionality" to "capability"
  2. Converted passive voice instances ("was modified") to active voice ("modified Campaign")

The changes have been pushed to the PR branch.

@adiati98 adiati98 added this to the 7.2 milestone May 31, 2026
@adiati98 adiati98 requested a review from escopecz May 31, 2026 13:51
@escopecz
Copy link
Copy Markdown
Member

escopecz commented Jun 1, 2026

I closed the Mautic PR as this event was a duplicate of another existing event. So closing this as well.

@escopecz escopecz closed this Jun 1, 2026
@promptless-for-oss promptless-for-oss deleted the promptless/pr-16172-membership-change-event branch June 1, 2026 12:41
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.

3 participants