Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created September 27, 2013 19:40
Show Gist options
  • Save rosshanney/6734111 to your computer and use it in GitHub Desktop.
Save rosshanney/6734111 to your computer and use it in GitHub Desktop.
Changes GCE Ajax URL for Triangle Day School site.
<?php
/*
Plugin name: Change GCE Ajax URL
*/
function gce_change_ajax_url() {
?>
<script type="text/javascript">
var GoogleCalendarEvents = GoogleCalendarEvents || {};
GoogleCalendarEvents.ajaxurl = "http://triangledayschool.previewdns.com/wp-admin/admin-ajax.php";
</script>
<?php
}
add_action( 'wp_footer', 'gce_change_ajax_url', 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment