Clean up for initial release

This commit is contained in:
Takumi
2013-08-23 19:39:04 +10:00
parent b295248749
commit 6a55bdbaa5
7 changed files with 67 additions and 273 deletions

View File

@@ -3,7 +3,7 @@ function sp_table_cpt_init() {
$name = __( 'League Tables', 'sportspress' );
$singular_name = __( 'League Table', 'sportspress' );
$lowercase_name = __( 'league tables', 'sportspress' );
$labels = sp_cpt_labels( $name, $singular_name, $lowercase_name );
$labels = sp_cpt_labels( $name, $singular_name, $lowercase_name, true );
$args = array(
'label' => $name,
'labels' => $labels,
@@ -11,7 +11,8 @@ function sp_table_cpt_init() {
'hierarchical' => false,
'supports' => array( 'title', 'author' ),
'register_meta_box_cb' => 'sp_table_meta_init',
'rewrite' => array( 'slug' => 'table' )
'rewrite' => array( 'slug' => 'table' ),
'show_in_menu' => 'edit.php?post_type=sp_team'
);
register_post_type( 'sp_table', $args );
}