Skip Navigation
availability:

WPML Version: 4.4.0

description:

This filter allows you to update the language switcher when a visitor navigates on the front-end and the theme or plugin is refreshing the page with AJAX (the language switcher links will follow the navigation).

Note: This feature will work only if the AJAX response receives the full page content, so that WPML can extract and replace the language switchers.

type:
filter
category:
Miscellaneous
parameters:
$isEnabled
(boolean) Enable or disable AJAX navigation. Default: false.
hook example usage:
// The AJAX navigation will always be enabled
add_filter( 'wpml_ls_enable_ajax_navigation', '__return_true' );