Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Ensure that Polylang plugin is loaded on Ajax request, to ensure calendar output is translated

View gce-load-polylang-on-ajax.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php
/*
Plugin name: GCE Load Polylang on Ajax requests
*/
function gce_load_polylang_on_ajax() {
?>
<script type="text/javascript">
if (typeof jQuery != 'undefined') {
jQuery.ajaxSetup({
data: { pll_load_front: true }
});
}
</script>
<?php
}
add_action( 'wp_head', 'gce_load_polylang_on_ajax' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.