Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** wpuf_get_countries-as-country-name **/
- $country_code = 'US';
- $country = array_filter( wpuf_get_countries(), function ( $item ) use ( $country_code ) {
- return $item['code'] === $country_code;
- } );
- $country = array_pop( $country );
- echo $country['name'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement