Skip to content

Instantly share code, notes, and snippets.

@raphaeldealmeida
Created February 18, 2014 14:49
Show Gist options
  • Save raphaeldealmeida/9072379 to your computer and use it in GitHub Desktop.
Save raphaeldealmeida/9072379 to your computer and use it in GitHub Desktop.
<?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