Translations:Manual:$wgGroupsAddToSelf/12/en

The old syntax will still work for allowing every user to add groups to themselves, but it is recommended that you use $code instead.