WP Manifestindependent plugin directory
manifest / content / acf-country

Advanced Custom Fields: ACF Country WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

ACF Country field - Display a select field of all countries, in any language.

★ 120stars
101kcomposer installs
v3.1.0latest · 21d ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/nlemoine/acf-country/archive/refs/heads/3.x.zip

On Packagist as hellonico/acf-country:

composer require hellonico/acf-country
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

ACF Country field

Adds a 'Country' field type for the Advanced Custom Fields WordPress plugin.

⚠️ WARNING ⚠️

From version 2.0.0, ACF Country introduced some important breaking changes:

  • Dropped support for older PHP & ACF versions, new requirements are:
    • ACF 5.7+
    • PHP 5.4+
  • Return format has changed. To better stick to ACF and make use of ACF functions, ACF Country will now return values the same way select field do. ['FR' => 'France'] will now look like ['label' => 'France', 'value' => 'FR']

Looking for a ACF pre 5.7 support? Check the 1.0 branch.

Overview

Display a select list of all countries in your language.

Country names are available in every language (see available list). By default, country names are localized in your current WordPress language.

Select a single value:

ACF Country field

Or multiple ones:

ACF Country field

Compatibility

  • ACF 5.7+
  • PHP 5.4+

Field options

Option Default Description
Default value emtpy Set a default value for the country field (as country code)
Allow null false Enable/disable null value
Allow multiple false Enable/disable multiple countries selection
Stylised UI true Enable/disable enhanced select field thanks to Select2
Return format value  See ACF Select field

Filters

You can remove (or add) some countries with the acf/country/countries filter, example:

add_filter( 'acf/country/countries', function( $countries ) {
    return array_filter( $countries, function( $code ) {
        return !in_array( $code, ['IC', 'EA'], true );
    }, ARRAY_FILTER_USE_KEY);
} );

Note: PHP5.6+ example

Installation

Zip

Download the plugin and extract the archive to your plugins folder.

Composer

composer require hellonico/acf-country

Contributing

See CONTRIBUTING.

Support

This ACF field was originally developed for a personal project I don't use anymore. I still decided to maintain it anyway. If you use it in a commercial project, please consider buying me a beer.

Releases

15 releases.

Tag
Published
v3.1.0 latest
Oct 1, 2026 21d ago
Mar 15, 2024 2 years ago
Feb 23, 2024 2 years ago
Nov 4, 2023 2 years ago
Sep 17, 2020 6 years ago
Feb 10, 2020 6 years ago
Dec 3, 2018 7 years ago
Nov 30, 2018 7 years ago
Nov 30, 2018 7 years ago
Nov 30, 2018 7 years ago
May 4, 2017 9 years ago
Mar 31, 2017 9 years ago
Feb 3, 2017 9 years ago
Jan 10, 2017 9 years ago
Jan 10, 2017 9 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Advanced Custom Fields: ACF Country 3.1.0 · audited by WP Registry

No security issues found.

Audited release
3.1.0
Findings
none
Worst severity
—
Content hash
335c84480066dd5929adae52…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.