Manual:InitUserPreference.php

Category:MediaWiki code#InitUserPreference.php

Details

initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.

Options

Option Description Required
--targetName of the user preference to initializeRequired
--sourceName of the user preference to take the value fromRequired

Usage

php maintenance/run.php initUserPreference target source
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts Category:User maintenance scripts
Category:Maintenance scripts Category:MediaWiki code Category:User maintenance scripts