Business Type
Local Business Types
if ( ! function_exists( 'custom_business_type' ) ) {
// Register Custom Taxonomy
function custom_business_type() {
$labels = array(
'name' => _x( 'Business Types', 'Taxonomy General Name', 'mnxonline' ),
'singular_name' => _x( 'Business Type', 'Taxonomy Singular Name', 'mnxonline' ),
'menu_name' => __( 'Business Type', 'mnxonline' ),
'all_items' => __( 'All Business Types', 'mnxonline' ),
'parent_item' => __( 'Parent Business Type', 'mnxonline' ),
'parent_item_colon' => __( 'Parent Business Type:', 'mnxonline' ),
'new_item_name' => __( 'New Business Type Name', 'mnxonline' ),
'add_new_item' => __( 'Add New Business Type', 'mnxonline' ),
'edit_item' => __( 'Edit Business Type', 'mnxonline' ),
'update_item' => __( 'Update Business Type', 'mnxonline' ),
'view_item' => __( 'View Business Type', 'mnxonline' ),
'separate_items_with_commas' => __( 'Separate Business Types with commas', 'mnxonline' ),
'add_or_remove_items' => __( 'Add or remove Business Types', 'mnxonline' ),
'choose_from_most_used' => __( 'Choose from the most used', 'mnxonline' ),
'popular_items' => __( 'Popular Business Types', 'mnxonline' ),
'search_items' => __( 'Search Business Types', 'mnxonline' ),
'not_found' => __( 'Not Found', 'mnxonline' ),
'no_terms' => __( 'No Business Type', 'mnxonline' ),
'items_list' => __( 'Business Types list', 'mnxonline' ),
'items_list_navigation' => __( 'Business Types list navigation', 'mnxonline' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'business_type', array( 'localBusiness' ), $args );
}
add_action( 'init', 'custom_business_type', 0 );
}