Docs

Setting Preferred Countries

1 min readUpdated October 19, 2026

Go to WooCommerce > Smart Phone Field > Countries. All three lists use a searchable country picker. Click Save Settings when you’re done.

Preferred countries#

Pin up to 4 countries to the top of the dropdown, in the order you add them, with a divider below. Pick the countries most of your customers order from.

Default: United States, United Kingdom, Canada.

Show only these countries#

Limit the dropdown to the countries you list. Use this if you only sell to a few countries. Leave it empty to show every country.

Hide these countries#

Remove countries from the dropdown. If a country is in both Show only and Hide, it is hidden.

In code#

You can also set these lists with filters. Each returns an array of lowercase two-letter country codes.

add_filter( 'nahnu_spf_preferred_countries', function () {
    return array( 'au', 'nz' );
} );

add_filter( 'nahnu_spf_exclude_countries', function () {
    return array( 'xx', 'yy' );
} );

nahnu_spf_only_countries works the same way for the Show only list.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only