Function __global->get_country
Definitions
sources/locations.php
- Find the active ISO country.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | The member to fetch (null: current member) |
Returns
- The active region (null: none found, unfiltered)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the active ISO country.
*
* @param ?MEMBER $member_id The member to fetch (null: current member)
* @return ?string The active region (null: none found, unfiltered)
*/
function get_country(?int $member_id = null) : ?string
* Find the active ISO country.
*
* @param ?MEMBER $member_id The member to fetch (null: current member)
* @return ?string The active region (null: none found, unfiltered)
*/
function get_country(?int $member_id = null) : ?string

