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