I used this code
/**
* Add a list of products to Listo
*/
// Filter to enqueu the language list
/*
if ( interface_exists( 'Listo' ) ) {
add_filter( 'listo_list_types', function( $list_types ) {
$list_types = array(
'products' => 'Listo_products',
);
return $list_types;
}, 10, 1 );
// Class to handle the language list
class Listo_products implements Listo {
private function __construct() {}
public static function items() {
return array(
'en' => _x( 'English', 'products', 'listo' ),
'es' => _x( 'Spanish', 'products', 'listo' ),
'it' => _x( 'Italian', 'products', 'listo' ),
'fr' => _x( 'French', 'products', 'listo' ),
'nl' => _x( 'Dutch', 'products', 'listo' ),
'de' => _x( 'German', 'products', 'listo' ),
);
}
public static function groups() {
return array();
}
}
}
Why it cause problems with the list for countries?