Created
September 17, 2014 12:10
-
-
Save gmmcal/e7180a0040011daf84a6 to your computer and use it in GitHub Desktop.
Criando um plugin para Wordpress usando Custom Post Types - Tutorial 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$labels = array( | |
'name' => 'Demonstração', | |
'singular_name' => 'Demonstração', | |
'add_new' => 'Adicionar novo', | |
'add_new_item' => 'Adicionar nova demonstração', | |
'edit_item' => 'Editar Demonstração', | |
'new_item' => 'Nova Demonstração', | |
'all_items' => 'Todas as Demonstrações', | |
'view_item' => 'Ver Demonstração', | |
'search_items' => 'Pesquisar Demonstração', | |
'not_found' => 'Nenhuma demonstração encontrada', | |
'not_found_in_trash' => 'Nenhuma demonstração encontrada no lixo', | |
'parent_item_colon' => 'Demonstração pai', | |
'menu_name' => 'Demonstração' | |
); | |
$args = array( | |
'labels' => $labels, | |
'description' => '', | |
'public' => true, | |
'publicly_queryable' => true, | |
'exclude_from_search' => false, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'menu_position' => 25, | |
'menu_icon' => NULL, | |
'hierarchical' => false, | |
'supports' => array( | |
'title', | |
'editor', | |
'thumbnail', | |
'excerpt', | |
), | |
'has_archive' => true, | |
'rewrite' => array( | |
'slug' => 'demonstracao', | |
'with_front' => false, | |
'feeds' => true, | |
'pages' => true, | |
), | |
'query_var' => 'demonstracao', | |
'can_export' => true, | |
'show_in_nav_menus' => false, | |
'capability_type' => 'post', | |
); | |
register_post_type('demonstracao',$args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment