Skip to content

Instantly share code, notes, and snippets.

@JudeRosario
Created March 23, 2015 09:43
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 JudeRosario/c7a88fbe7191a187ab68 to your computer and use it in GitHub Desktop.
Save JudeRosario/c7a88fbe7191a187ab68 to your computer and use it in GitHub Desktop.
Appointments+ Force SSL
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');
@JudeRosario
Copy link
Author

Just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment