< Manual:Hooks
![]() | This feature was removed completely in version 1.37.0 (after being deprecated in 1.35.0). |
UserRequiresHTTPS | |
---|---|
Available from version 1.22.0 (Gerrit change 80030) Removed in version 1.37.0 Allows extensions to override whether users need to be redirected to HTTPS | |
Define function: | public static function onUserRequiresHTTPS( $user, &$https ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserRequiresHTTPS": "MyExtensionHooks::onUserRequiresHTTPS"
}
}
|
Called from: | File(s): user/User.php |
Interface: | UserRequiresHTTPSHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:UserRequiresHTTPS extensions.
Details
Allows extensions to override whether users need to be redirected to HTTPS, which is normally decided based on the prefershttps
user preference. The value of that preference is passed in as the $https
parameter for the hook to manipulate.
See also
- Manual:HTTPS
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.