Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created February 17, 2014 14:44
Show Gist options
  • Save ckpicker/9051867 to your computer and use it in GitHub Desktop.
Save ckpicker/9051867 to your computer and use it in GitHub Desktop.
Events PRO 3.4.1 // Load all assets over SSL if on an encrypted connection
add_filter( 'init', 'enforce_ssl_ecp', 5 );
function enforce_ssl_ecp() {
if ( ! is_ssl() || ! class_exists( 'TribeEventsPro' ) ) return;
$pro = TribeEventsPRO::instance();
$pro->pluginUrl = str_replace( 'http://', 'https://', $pro->pluginUrl );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment