OnUserProfileSave
Last updated Aug 15th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn moreEvent: OnUserProfileSave¶
Fires after a modUserProfile has been saved successfully. That is the extended profile row (email, full name, phone, blocked flags, extended JSON, and so on), not the modUser login record. Use OnUserSave when you need the user object itself.
Invoked from modUserProfile::save() only when parent::save() returns true.
- Service: 1 - Parser Service Events
- Group: User Profiles
Event Parameters¶
| Name | Description |
|---|---|
| userprofile | A reference to the saved modUserProfile object. |
| mode | modSystemEvent::MODE_NEW (new) or modSystemEvent::MODE_UPD (upd), depending on whether the profile was new. |
| cacheFlag | The $cacheFlag value passed into save(). |
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$204 per month—let's make that $500!
Learn more










