Create a gist now

Instantly share code, notes, and snippets.

Ensure that Polylang plugin is loaded on Ajax request, to ensure calendar output is translated
Plugin name: GCE Load Polylang on Ajax requests
function gce_load_polylang_on_ajax() {
<script type="text/javascript">
if (typeof jQuery != 'undefined') {
data: { pll_load_front: true }
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