CT – LEYES RGPD
if ( ! function_exists( 'ctm_tax_tipo' ) ) {
// Register Custom Taxonomy
function ctm_tax_tipo() {
$labels = array(
'name' => _x( 'Leyes', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Ley', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Ley', 'text_domain' ),
'all_items' => __( 'Todas las Leyes', 'text_domain' ),
'parent_item' => __( 'Ley Principal', 'text_domain' ),
'parent_item_colon' => __( '', 'text_domain' ),
'new_item_name' => __( 'Nueva Ley', 'text_domain' ),
'add_new_item' => __( 'Añadir Nueva Ley', 'text_domain' ),
'edit_item' => __( 'Editar Ley', 'text_domain' ),
'update_item' => __( 'Actualizar Ley', 'text_domain' ),
'view_item' => __( 'Ver Ley', 'text_domain' ),
'separate_items_with_commas' => __( 'Separar leyes con comas', 'text_domain' ),
'add_or_remove_items' => __( 'Añadir o eliminar leyes', 'text_domain' ),
'choose_from_most_used' => __( 'Elegir la más usada', 'text_domain' ),
'popular_items' => __( 'Leyes Populares', 'text_domain' ),
'search_items' => __( 'Buscar leyes', 'text_domain' ),
'not_found' => __( 'No encontrada', 'text_domain' ),
'no_terms' => __( 'Sin lEy', 'text_domain' ),
'items_list' => __( 'Lista de Leyes', 'text_domain' ),
'items_list_navigation' => __( 'Navegación Lista Leyes', '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,
);
register_taxonomy( 'ley', array( 'que-es' ), $args );
}
add_action( 'init', 'ctm_tax_tipo', 0 );
}