(MBS) Savings Categories
// Register Custom Taxonomy
function _mbs_register_taxonomy_savings_type() {
$labels = array(
'name' => _x( 'Savings Types', 'Taxonomy General Name', 'mbs' ),
'singular_name' => _x( 'Savings Type', 'Taxonomy Singular Name', 'mbs' ),
'menu_name' => __( 'Savings Types', 'mbs' ),
'all_items' => __( 'All Savings Types', 'mbs' ),
'parent_item' => __( 'Parent Savings Type', 'mbs' ),
'parent_item_colon' => __( 'Parent Savings Type:', 'mbs' ),
'new_item_name' => __( 'New Savings Type Name', 'mbs' ),
'add_new_item' => __( 'Add New Savings Type', 'mbs' ),
'edit_item' => __( 'Edit Savings Type', 'mbs' ),
'update_item' => __( 'Update Savings Type', 'mbs' ),
'view_item' => __( 'View Savings Type', 'mbs' ),
'separate_items_with_commas' => __( 'Separate Savings Types with commas', 'mbs' ),
'add_or_remove_items' => __( 'Add or remove Savings Types', 'mbs' ),
'choose_from_most_used' => __( 'Choose from the most used', 'mbs' ),
'popular_items' => __( 'Popular Savings Types', 'mbs' ),
'search_items' => __( 'Search Savings Types', 'mbs' ),
'not_found' => __( 'Not Found', 'mbs' ),
'no_terms' => __( 'No items', 'mbs' ),
'items_list' => __( 'Savings Types list', 'mbs' ),
'items_list_navigation' => __( 'Savings Types list navigation', 'mbs' ),
);
$rewrite = array(
'slug' => 'savings-products',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'rewrite' => $rewrite,
);
register_taxonomy( 'savings_type', array( 'savings_product' ), $args );
}
add_action( 'init', '_mbs_register_taxonomy_savings_type', 0 );