Last active
November 29, 2017 11:19
-
-
Save mrfoxtalbot/8f4c93e27224ac8668332ecdcc27041e to your computer and use it in GitHub Desktop.
Excepción del forzado de redirección HTTPS usando Lets Encrypt + Really Simple SSL para que funcione la confirmación del pago de Redsys con el plugin Redsys Gateway #WooCommerce #WordPress
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 | |
function rsssl_exclude_http_url($html) { | |
$html = str_replace( | |
'https://example.com/?wc-api=WC_Sermepa', | |
'http://example.com/?wc-api=WC_Sermepa', $html); | |
return $html; | |
} | |
add_filter('rsssl_fixer_output','rsssl_exclude_http_url'); | |
// Sources: | |
//https://really-simple-ssl.com/forums/topic/excluding-links-from-https-override/ | |
//https://github.com/jesusangel/wc-sermepa/issues/2 | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment