Created
November 4, 2022 17:18
-
-
Save kerijacoby/79a1e94991e75b6e6bf2959423e40ee0 to your computer and use it in GitHub Desktop.
Add Positive SSL Seal to PMPro Checkout Page.
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
<?php | |
/* | |
Add Positive SSL Seal to PMPro Checkout Page. | |
*/ | |
function my_option_pmpro_sslseal($seal) { | |
if(is_admin()) { | |
return$seal; | |
} | |
ob_start(); ?> | |
<script type="text/javascript"> //<![CDATA[ | |
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.trust-provider.com/" : "http://www.trustlogo.com/"); | |
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E")); | |
//]]></script> | |
<script language="JavaScript" type="text/javascript"> | |
TrustLogo("https://www.positivessl.com/images/seals/positivessl_trust_seal_md_167x42.png", "POSDV", "none"); | |
</script> | |
<?php $html = ob_get_clean(); | |
return $seal . $html; | |
} | |
add_filter('option_pmpro_sslseal', 'my_option_pmpro_sslseal'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment