Pet Live With Taxonomy
if ( ! function_exists( 'pet_live_with_taxonomy' ) ) {
// Register Custom Taxonomy
function pet_live_with_taxonomy() {
$labels = array(
'name' => 'Things Pet Can Live With',
'singular_name' => 'Thing Pet Can Live With',
'menu_name' => 'Things Pet Can Live With',
'all_items' => 'All Things Pet Can Live With',
'parent_item' => 'Parent Thing Pet Can Live With',
'parent_item_colon' => 'Parent Thing Pet Can Live With:',
'new_item_name' => 'New Thing Pet Can Live With Name',
'add_new_item' => 'Add New Thing Pet Can Live With',
'edit_item' => 'Edit Thing Pet Can Live With',
'update_item' => 'Update Thing Pet Can Live With',
'view_item' => 'View Thing Pet Can Live With',
'separate_items_with_commas' => 'Separate Things Pet Can Live With with commas',
'add_or_remove_items' => 'Add or remove Things Pet Can Live With',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Things Pet Can Live With',
'search_items' => 'Search Things Pet Can Live With',
'not_found' => 'Not Found',
'no_terms' => 'No Things Pet Can Live With',
'items_list' => 'Things Pet Can Live With list',
'items_list_navigation' => 'Things Pet Can Live With list navigation',
);
$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( 'pet-live-with', array( 'pet' ), $args );
}
add_action( 'init', 'pet_live_with_taxonomy', 0 );
}