Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function type_post_funcionarios() {
- $labels = array(
- 'name' => _x('Funcionários', 'Registro de Funcionários'),
- 'singular_name' => _x('Funcionário', 'post type singular name'),
- 'add_new' => _x('Novo', 'Novo item'),
- 'add_new_item' => __('Novo Funcionário'),
- 'edit_item' => __('Editar'),
- 'new_item' => __('Novo'),
- 'view_item' => __('Ver'),
- 'search_items' => __('Procurar'),
- 'not_found' => __('Nenhum registro encontrado'),
- 'not_found_in_trash' => __('Nenhum registro encontrado na lixeira'),
- 'parent_item_colon' => '',
- 'menu_name' => 'Funcionários'
- );
- $args = array(
- 'labels' => $labels,
- 'public' => true,
- 'public_queryable' => true,
- 'show_ui' => true,
- 'query_var' => true,
- 'rewrite' => true,
- 'capability_type' => 'post',
- 'has_archive' => true,
- 'hierarchical' => false,
- 'menu_position' => 60,
- 'register_meta_box_cb' => 'funcionarios_meta_box',
- 'supports' => array('title','thumbnail','revisions','custom-fields')
- );
- register_post_type( 'funcionarios' , $args );
- flush_rewrite_rules();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement