Created
February 18, 2014 14:49
-
-
Save raphaeldealmeida/9072379 to your computer and use it in GitHub Desktop.
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
<?php | |
add_action('init', 'type_post_turmas'); | |
function type_post_turmas() { | |
$labels = array( | |
'name' => _x('Turmas', 'post type general name'), | |
'singular_name' => _x('Turma', 'post type singular name') | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
// 'register_meta_box_cb' => 'noticias_meta_box', | |
'supports' => array('title','editor','thumbnail','comments', 'excerpt', 'custom-fields', 'revisions', 'trackbacks') | |
); | |
register_post_type( 'turmas' , $args ); | |
flush_rewrite_rules(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment