This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter the URL to check if there is query string | |
* and attach the query string to WPML URL as well. | |
*/ | |
add_filter( 'icl_ls_languages', 'my_ls_filter' ); | |
function my_ls_filter($languages) { | |
global $icl_adjust_id_url_filter_off; | |
if( $_SERVER[ 'QUERY_STRING' ] ){ |