Piwik\Plugins\SitesManager\API::setDefaultCurrency PHP Method

setDefaultCurrency() public method

Sets the default currency that will be used when creating websites
public setDefaultCurrency ( string $defaultCurrency ) : boolean
$defaultCurrency string Currency code, eg. 'USD'
return boolean
    public function setDefaultCurrency($defaultCurrency)
    {
        Piwik::checkUserHasSuperUserAccess();
        $this->checkValidCurrency($defaultCurrency);
        Option::set(self::OPTION_DEFAULT_CURRENCY, $defaultCurrency);
        return true;
    }