property_tax_zipcode
if ( ! function_exists( 'property_tax_zipcode' ) ) {
// Register Custom Taxonomy
function property_tax_zipcode() {
$labels = array(
'name' => _x( 'Zip Codes', 'Taxonomy General Name', 'gum-bcrapp' ),
'singular_name' => _x( 'Zip Code', 'Taxonomy Singular Name', 'gum-bcrapp' ),
'menu_name' => __( 'Zip Code', 'gum-bcrapp' ),
'all_items' => __( 'All Zip Codes', 'gum-bcrapp' ),
'parent_item' => __( 'Parent Zip Code', 'gum-bcrapp' ),
'parent_item_colon' => __( 'Parent Zip Code:', 'gum-bcrapp' ),
'new_item_name' => __( 'New Zip Code', 'gum-bcrapp' ),
'add_new_item' => __( 'Add New Zip Code', 'gum-bcrapp' ),
'edit_item' => __( 'Edit Zip Code', 'gum-bcrapp' ),
'update_item' => __( 'Update Zip Code', 'gum-bcrapp' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'gum-bcrapp' ),
'search_items' => __( 'Search Zip Codes', 'gum-bcrapp' ),
'add_or_remove_items' => __( 'Add or remove Zip Codes', 'gum-bcrapp' ),
'choose_from_most_used' => __( 'Choose from the most used Zip Codes', 'gum-bcrapp' ),
'not_found' => __( 'Zip Code Not Found', 'gum-bcrapp' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'zipcode', array( 'property' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'property_tax_zipcode', 0 );
}