Skip to end of metadata
Go to start of metadata

$lbcountry = LBSystem::lbcountry();

Returns the current user country of LoxBerry (e.g. "at")

This is the country the user has set in the My LoxBerry widget. The country is returned in two letters lowercase, as defined in ISO 3166-1 alpha-2.

The function returns NULL, if no country was selected by the user.

LoxBerry Compatibility

This function is available from LoxBerry V2.2. If you use that function, set this minimum version in your plugin.cfg.


require_once "loxberry_system.php";
$lbcountry = LBSystem::lbcountry();

echo "The country set by the user is $lbcountry.";
  • No labels