Manual:Hooks/PageContentSave

Details

 * : the WikiPage (object) being saved
 * : the User (object) saving the article
 * : the new article content, as a Content object
 * : CommentStoreComment object containing the edit comment. Can be replaced with a new one.
 * : Boolean flag specifying if the edit was marked as minor.
 * : Previously a watch flag. Currently unused, always null.
 * : Previously the section number being edited. Currently unused, always null.
 * : All EDIT_… flags (including EDIT_MINOR) as an integer number. See WikiPage::doEditContent documentation for flags' definition.
 * : StatusValue object for the hook handlers resulting status. Either set $hookStatus->fatal or return false to abort the save action.
 * Return value: Return  to abort saving the page.

Earlier versions of MediaWiki (somewhat unintentionally) allowed changing parameters other than. Since 1.32 that does not work anymore; there is currently no exact replacement. If you own the content type, you can use a pre-save transform to change the content.