Skip to content

Instantly share code, notes, and snippets.

@drewbaker
drewbaker / functions.php
Last active June 19, 2017 09:02
GeoIP functions for WordPress. Requires some external GeoIP files and .dat file from MaxMind.
/*
* Region Select Custom Post Type
*/
function cutandrun2016_post_type() {
// US editors
$us_post_labels = array(
'name' => _x('US Region', ''),
'singular_name' => _x('US Region', ''),
'add_new' => _x('Add New', 'editor'),