Created
March 23, 2015 09:43
-
-
Save JudeRosario/c7a88fbe7191a187ab68 to your computer and use it in GitHub Desktop.
Appointments+ Force SSL
This file contains 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
function app_force_ssl() { | |
$script =<<<'EOScript' | |
<script> | |
var _appointments_data = {"ajax_url":"https:\/\/acupuncturect.com\/wp-admin\/admin-ajax.php","root_url":"http:\/\/acupuncturect.com\/wp-content\/plugins\/appointments\/images\/"}; | |
</script> | |
EOScript; | |
echo $script; | |
} | |
add_action('wp_footer', 'app_force_ssl'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy/paste the code into the
functions.php
file of your child theme or a site specific plugin if you use one.