Created
June 1, 2021 11:33
-
-
Save pacotole/7d54a3a2933d85b1c42946642fbac311 to your computer and use it in GitHub Desktop.
Join.chat CTA Extras force https on links and image sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'joinchat_format_replacements', function($replaces) { | |
$replaces['/(http:\/\/)/u'] = 'https://'; | |
return $replaces; | |
}, 999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment