Country Config

`vtupress_country_array`

Add supported countries or modify currencies.

**Before:** Array containing `[‘NG’ => [‘currency’ => ‘NGN’, ‘code’ => ‘+234’, ‘airtime’ => [‘mtn’, ‘glo’…]]]`

**Hook Example:**

```php

add_filter('vtupress_country_array', function($countries) {

    // Make sure to match the exact schema used in VTUPress config/country.json

    $countries['ghana'] = [

        'iso' => 'GH',

        'slogan' => 'The Black Star of Africa',

        'status' => true, // Set to true to enable

        'name' => 'Ghanaian Cedi',

        'currency' => 'GHS',

        'symbol' => '₵',

        'code' => '+233',

        'airtime' => ['mtn', 'vodafone', 'airtel', 'tigo'],

        'data' => ['mtn', 'vodafone', 'airtel', 'tigo'],

        // ... add cable, bill, etc.

    ];

    return $countries;

});

```

**After:** Array includes the full Ghana object with available service networks.

Was this page helpful?