Manual:Hooks/UserRequiresHTTPS

Details
Allows extensions to override whether users need to be redirected to HTTPS, which is normally decided based on the  user preference. The value of that preference is passed in as the  parameter for the hook to manipulate.