Filter
rpress_shop_country
On this page
Filters the shop base country code.
Applied in rpress_get_shop_country(), which reads the base_country option and defaults to US. The value is used wherever the store country is needed, including the default country for state lists in rpress_get_states().
Parameters#
| Parameter | Type | Description |
|---|---|---|
$country | string | Two-letter ISO country code of the shop base country. |
Return value#
string. The two-letter country code to use as the shop country.
Example#
function my_shop_country( $country ) {
return 'GB';
}
add_filter( 'rpress_shop_country', 'my_shop_country' );
Source#
Applied in:
includes/country-functions.php(line 21), inrpress_get_shop_country()
See also#
Was this page helpful?
