CoRo Taxonomy Flavours
if ( ! function_exists( 'coro_ctax_flavours' ) ) {
// Register Custom Taxonomy
function coro_ctax_flavours() {
$labels = array(
'name' => _x( 'Flavours', 'Taxonomy General Name', 'coro' ),
'singular_name' => _x( 'Flavour', 'Taxonomy Singular Name', 'coro' ),
'menu_name' => __( 'Flavours', 'coro' ),
'all_items' => __( 'All Flavours', 'coro' ),
'parent_item' => __( 'Parent Flavour', 'coro' ),
'parent_item_colon' => __( 'Parent Flavour:', 'coro' ),
'new_item_name' => __( 'New Flavour', 'coro' ),
'add_new_item' => __( 'Add New Flavour', 'coro' ),
'edit_item' => __( 'Edit Flavour', 'coro' ),
'update_item' => __( 'Update Flavour', 'coro' ),
'view_item' => __( 'View Flavour', 'coro' ),
'separate_items_with_commas' => __( 'Separate flavour with commas', 'coro' ),
'add_or_remove_items' => __( 'Add or remove flavour', 'coro' ),
'choose_from_most_used' => __( 'Choose from the most used', 'coro' ),
'popular_items' => __( 'Popular Flavours', 'coro' ),
'search_items' => __( 'Search Flavours', 'coro' ),
'not_found' => __( 'Not Found', 'coro' ),
'no_terms' => __( 'No Flavours', 'coro' ),
'items_list' => __( 'Items list', 'coro' ),
'items_list_navigation' => __( 'Items list navigation', 'coro' ),
);
$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( 'flavours', array( 'products' ), $args );
}
add_action( 'init', 'coro_ctax_flavours', 0 );
}