Skip to content

Instantly share code, notes, and snippets.

@JudeRosario
Created February 5, 2015 16:18
Show Gist options
  • Save JudeRosario/813aad26f95b001465ae to your computer and use it in GitHub Desktop.
Save JudeRosario/813aad26f95b001465ae to your computer and use it in GitHub Desktop.
Pro Sites SSL Fix
add_filter ('psts_setting_checkout_url' , 'ssl_url_fix');
function ssl_url_fix( $setting, $default ) {
// If permalink does not have http prepended then do it.
if (strpos($setting, "http://") !== 0)
$setting = "http://". $setting ;
return $setting ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment