VV Impact
if ( ! function_exists( 'vv_impact_tax' ) ) {
// Register Custom Taxonomy
function vv_impact_tax() {
$labels = array(
'name' => _x( 'Impact', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Impact', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Impact', 'text_domain' ),
'all_items' => __( 'All Impact Types', 'text_domain' ),
'parent_item' => __( 'Parent Impact Type', 'text_domain' ),
'parent_item_colon' => __( 'Parent Impact:', 'text_domain' ),
'new_item_name' => __( 'New Impact', 'text_domain' ),
'add_new_item' => __( 'Add New Impact', 'text_domain' ),
'edit_item' => __( 'Edit Impact', 'text_domain' ),
'update_item' => __( 'Update Impact', 'text_domain' ),
'view_item' => __( 'View Impact', 'text_domain' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),
'add_or_remove_items' => __( 'Add or remove impact types', 'text_domain' ),
'choose_from_most_used' => __( 'Choose from the most used impact types', 'text_domain' ),
'popular_items' => __( 'Popular Impact Types', 'text_domain' ),
'search_items' => __( 'Search Impact Types', 'text_domain' ),
'not_found' => __( 'No Impact Types Found', 'text_domain' ),
'no_terms' => __( 'No Impact Types', 'text_domain' ),
'items_list' => __( 'Impact Types list', 'text_domain' ),
'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
'show_in_rest' => true,
);
register_taxonomy( 'vv_impact', array( 'post', ' tf_projects', ' tf_research' ), $args );
}
add_action( 'init', 'vv_impact_tax', 0 );
}