OnUserProfileBeforeSave
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: OnUserProfileBeforeSave¶
Fires right before a modUserProfile is saved. That is the extended profile row (email, full name, phone, blocked flags, extended JSON, and so on), not the modUser login record. Use OnUserBeforeSave when you need the user object itself.
Invoked from modUserProfile::save() in MODX Revolution 3.x.
- Service: 1 - Parser Service Events
- Group: User Profiles
Event Parameters¶
| Name | Description |
|---|---|
| userprofile | A reference to the modUserProfile object about to be saved. |
| mode | modSystemEvent::MODE_NEW (new) or modSystemEvent::MODE_UPD (upd), depending on whether the profile is 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










