Skip to content

Instantly share code, notes, and snippets.

@pacotole
Created June 1, 2021 11:33
Show Gist options
  • Save pacotole/7d54a3a2933d85b1c42946642fbac311 to your computer and use it in GitHub Desktop.
Save pacotole/7d54a3a2933d85b1c42946642fbac311 to your computer and use it in GitHub Desktop.
Join.chat CTA Extras force https on links and image sources
<?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