rem_countries
This filter can be used to add/modify country data.
Arguments
- Countries Data [Array]
Add/Modify Countries
Add code to your child theme’s functions.php
file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php
file as this will be wiped entirely when you update the theme.
Note: You must replace the instance of XX with your country code. This means each country in the array must have a two-letter country code.
add_filter( 'rem_countries', 'custom_rem_countries' ); function custom_rem_countries( $countries ) { $countries['XX'] = 'Country Name'; return $countries; }