Skip to content

Instantly share code, notes, and snippets.

@sergiopvilar
Created May 2, 2012 19:23
Show Gist options
  • Select an option

  • Save sergiopvilar/2579497 to your computer and use it in GitHub Desktop.

Select an option

Save sergiopvilar/2579497 to your computer and use it in GitHub Desktop.
<?php
function plano_reg(){
$taxonomy = array (
'hierarchical' => '1',
'public' => '',
'label' => '',
'singular_label' => '',
'name' => '',
'show_ui' => '1',
'rewrite' => '0',
'rewrite_base' => 'planos-e-convenios',
'show_tagcloud' => '0',
'query_var_bool' => '1',
'query_var' => '',
'index' => 'regiao_orcamentaria',
'ancestor_key' => '',
'labels' =>
array (
'name' => 'Planos e Convênios',
'singular_name' => 'Plano ou Convênio',
'search_items' => 'Busca',
'popular_items' => 'Popular',
'all_items' => 'Todas',
'parent_item' => '',
'parent_item_colon' => '',
'edit_item' => 'Editar',
'update_item' => 'Atualizar',
'add_new_item' => 'Adicionar novo',
'new_item_name' => 'Nova região',
'separate_items_with_commas' => 'Separado por vírgulas',
'add_or_remove_items' => 'Adicionar ou remover',
'choose_from_most_used' => 'Escolha entre os mais utilizados',
),
);
register_taxonomy("plano", array("diagnostico"), $taxonomy);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment