JoeHana
3/14/2014 - 3:31 PM

Create labels for custom taxonomy

Create labels for custom taxonomy

<?php

add_filter('frameshift_portfolio_skills_labels', 'custom_portfolio_skills_labels', 30);

function frameshift_portfolio_skills_labels($labels) {
	
    $labels = array( 
        'name' 					=> _x( 'Skills', 'skills', 'frameshift' ),
        'singular_name' 			=> _x( 'Skill', 'skills', 'frameshift' ),
        'search_items' 				=> _x( 'Search Skills', 'skills', 'frameshift' ),
        'popular_items' 			=> _x( 'Popular Skills', 'skills', 'frameshift' ),
        'all_items' 				=> _x( 'All Skills', 'skills', 'frameshift' ),
        'parent_item' 				=> _x( 'Parent Skill', 'skills', 'frameshift' ),
        'parent_item_colon' 		 	=> _x( 'Parent Skill:', 'skills', 'frameshift' ),
        'edit_item' 				=> _x( 'Edit Skill', 'skills', 'frameshift' ),
        'update_item' 				=> _x( 'Update Skill', 'skills', 'frameshift' ),
        'add_new_item' 				=> _x( 'Add New Skill', 'skills', 'frameshift' ),
        'new_item_name' 			=> _x( 'New Skill', 'skills', 'frameshift' ),
        'separate_items_with_commas' 		=> _x( 'Separate skills with commas', 'skills', 'frameshift' ),
        'add_or_remove_items' 		 	=> _x( 'Add or remove skills', 'skills', 'frameshift' ),
        'choose_from_most_used' 	 	=> _x( 'Choose from the most used skills', 'skills', 'frameshift' ),
        'menu_name' 				=> _x( 'Skills', 'skills', 'frameshift' )
    );
    
    return $labels;

}