ERO custom taxonomy
// Register Custom Taxonomy
function ero_custom_taxonomy() {
$labels = array(
'name' => _x( 'Exemptive Relief Orders', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Exemptive Relief Order', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Exemptive Relief Orders', 'text_domain' ),
'all_items' => __( 'All EROs', 'text_domain' ),
'parent_item' => __( 'Parent Item', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'new_item_name' => __( 'New ERO', 'text_domain' ),
'add_new_item' => __( 'Add New ERO', 'text_domain' ),
'edit_item' => __( 'Edit ERO', 'text_domain' ),
'update_item' => __( 'Update ERO', 'text_domain' ),
'view_item' => __( 'View ERO', 'text_domain' ),
'separate_items_with_commas' => __( 'Separate EROs with commas', 'text_domain' ),
'add_or_remove_items' => __( 'Add or remove EROs', 'text_domain' ),
'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ),
'popular_items' => __( 'Popular Items', 'text_domain' ),
'search_items' => __( 'Search EROs', 'text_domain' ),
'not_found' => __( 'ERO not Found', 'text_domain' ),
'no_terms' => __( 'No EROs', 'text_domain' ),
'items_list' => __( 'EROs list', 'text_domain' ),
'items_list_navigation' => __( 'ERO list navigation', 'text_domain' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'show_in_rest' => true,
);
register_taxonomy( 'ero-tax', array( 'inv_funds', 'ni_55-104_sections' ), $args );
}
add_action( 'init', 'ero_custom_taxonomy', 0 );