This filter allows you to specify if the icl_object_id function from WPML should return the original store id if no translation is found.
If this is set to true, and no translation is found, then the original store id is used. This will guarantee that the store location is always included in the search results, but it might not be in the correct language.
If this is set to false, then stores that fall within the selected search radius are not included in the search results if no translation is found.
The default is set to true.
This example will make sure that store locations are only included in the search results if a translation exists:
This filter is located in /inc/class-i18n.php.
The code needs to be placed in the functions.php file inside your active theme folder.