HEX
Server: Apache
System: Linux webm010.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: alloesb (202139)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/a/l/l/alloesb/www/wp-content/themes/listable/inc/integrations/wpml.php
<?php

/**
 * @param $atts
 *
 * @return mixed
 */
function listable_add_search_lang_params( $atts = null ) {
	global $sitepress;
	if ( !empty( $_GET['lang'] ) && $sitepress->get_current_language() !==  $sitepress->get_default_language() ) {
		echo '<input type="hidden" name="lang" value="' . $sitepress->get_current_language() . '">';
	}

	return $atts;
}
add_action('job_manager_job_filters_start', 'listable_add_search_lang_params');
add_action('listable_header_search_hidden_fields', 'listable_add_search_lang_params');