Translations:Manual:$wgExtensionFunctions/4/en

Note however that at this point the RequestContext is not yet fully set up, so attempting to use it (or equivalent globals such as $1 or $2) is liable to fail in odd ways.