Skip to content

Instantly share code, notes, and snippets.

@michaelbeil
Forked from kerijacoby/positive-ssl-seal
Last active October 3, 2023 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelbeil/e9d0b7a22b2989fefbad9dfd286fd981 to your computer and use it in GitHub Desktop.
Save michaelbeil/e9d0b7a22b2989fefbad9dfd286fd981 to your computer and use it in GitHub Desktop.
Add Positive SSL Seal to PMPro Checkout Page
<?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