Planos HDTV
// Register Custom Post Type
function tipo_hdtv() {
$labels = array(
'name' => 'HDTV',
'singular_name' => 'HDTV',
'menu_name' => 'HDTV',
'name_admin_bar' => 'HDTV',
'archives' => 'Planos HDTV',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'Todos planos',
'add_new_item' => 'Adicionar novo plano',
'add_new' => 'Adicionar novo',
'new_item' => 'Novo plano',
'edit_item' => 'Editar plano',
'update_item' => 'Atualizar plano',
'view_item' => 'Ver plano',
'search_items' => 'Procurar plano',
'not_found' => 'Não encontrado',
'not_found_in_trash' => 'Não encontrado na lixeira',
'featured_image' => 'Imagem de capa',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remover imagem de capa',
'use_featured_image' => 'Usar imagem de capa',
'insert_into_item' => 'Insert into item',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Items list',
'items_list_navigation' => 'Items list navigation',
'filter_items_list' => 'Filter items list',
);
$rewrite = array(
'slug' => 'planos/hdtv',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => 'HDTV',
'description' => 'Planos de HDTV',
'labels' => $labels,
'supports' => array( 'title', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-building',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'hdtv', $args );
}
add_action( 'init', 'tipo_hdtv', 0 );