Month: March 2022

WooCommerce Function of the Week: get_european_union_countries

Close-Up Photo of Wooden Jigsaw Map

You can use get_european_union_countries() for currency switching, to display conditional notices, content, or fields. Basically, whenever there is a country dropdown, get_european_union_countries() may be what you need.

Before we dive into WooCommerce again, here’s a little historical context for the function we’re going to look at this week: get_european_union_countries.

In 1957, Belgium, France, Italy, Luxembourg, the Netherlands, and West Germany signed the Treaty of Rome, which created the European Economic Community. The European Union was formally established with the Maastricht Treaty on 1 November 1993. There are now 27 EU members, yet the list is always subject to change. With Brexit, the United Kingdom left the EU. There is talk currently about Ukraine joining.

Thankfully, WooCommerce developers coded a function called get_european_union_countries(), which returns an array of … countries in the EU! (Did you see that coming?) Once again, we can rely on a lazy WooCommerce function and stop worrying about who is and who is not in the EU.

But why would you ever need to use get_european_union_countries()? Let’s look at its syntax, its arguments, and some possible uses.

Read more

Fall of the Zamir: A Hate Symbol Enters and Exits WordPress.org

z exception

How did a hate symbol get into WordPress.org? Will more transparent governance help us navigate the age of weaponized open source projects?

Post Status Notes #491

Dragonfly on the Stick Near Spider Web

US DOJ warns of looming web accessibility enforcement. Weglot scores funding. WP-Wallet and Image Source Control launch. Block dev tuts. The Block Protocol and WordPress. WCUS and WordSesh calls for speakers. Why the web is a miracle and Mozilla’s vision for its evolution.

our sponsors

A2 Hosting
Omnisend
Kinsta
Progress Planner
Elementor
WP Munich
Atarim
Patchstack