Making WordPress.org


Ignore:
Timestamp:
04/04/2016 07:20:28 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Helpers: Add a wrapper for getting ISO 3166 countries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/helper-functions.php

    r2743 r2888  
    145145    return $user;
    146146}
     147
     148/**
     149 * Get ISO-3166 country names and codes
     150 *
     151 * @todo move the real functionality from get_valid_countries_iso3166() to here, then have the Budgets plugin,
     152 * QBO, etc call this.
     153 *
     154 * @return array
     155 */
     156function wcorg_get_countries() {
     157    require_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/wordcamp-budgets.php' );
     158
     159    return WordCamp_Budgets::get_valid_countries_iso3166();
     160}
Note: See TracChangeset for help on using the changeset viewer.