Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Moves Canada and the US to the top of the list of countries available
- * in WooCommerce.
- *
- * @author Aelia <support@aelia.co>
- */
- add_filter('woocommerce_countries', function($countries) {
- $countries = array(
- 'CA' => $countries['CA'],
- 'US' => $countries['US'],
- ) + $countries;
- return $countries;
- }, 10, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement