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