<?php 

// http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2 

add_action("init","iniciar_taxonomia_ambito");
function iniciar_taxonomia_ambito()
{		
		register_taxonomy('scope', array('post'), array(
			  'public'      =>true,
			  'labels'      =>array(
				  'name'                        =>__('Scope','ainia'),					
				  'menu_name'                   =>__('Scopes','ainia'),
				  'singular_name'               =>__('Scope','ainia'),								
				  'search_items'                =>__('Search by Scope','ainia'),
				  'popular_items'               =>__('Popular Scopes','ainia'),
				  'all_items'                   =>__('All Scopes','ainia'),
				  'edit_item'                   =>__('Edit Scope','ainia'),
				  'update_item'             	=>__('Update Scope','ainia'),
				  'add_new_item'                =>__('Add Scope','ainia'),
				  'new_item_name'               =>__('New Scope Name','ainia'),
				  'separate_items_with_commas'	=>__('Separate Scopes with commas','ainia'),
				  'add_or_remove_items'     	=>__('Add or remove Scopes','ainia'),
				  'choose_from_most_used'       =>__('Choose from most used Scope','ainia'),
			  ),
			  'hierarchical' =>true,
			  'rewrite'     =>array(
				  'with_front'              	=>true,
				  'slug'                    	=>'scope',
			  ),
			  
		));	
}
