Created
February 5, 2015 16:18
-
-
Save JudeRosario/813aad26f95b001465ae to your computer and use it in GitHub Desktop.
Pro Sites SSL Fix
This file contains hidden or 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
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