Use singular slugs for secondary post types

This commit is contained in:
Brian Miyaji
2014-03-17 02:15:05 +11:00
parent 7de9d811e3
commit 5d454b8a75
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ function sportspress_list_post_init() {
'hierarchical' => false,
'supports' => array( 'title', 'author', 'thumbnail' ),
'register_meta_box_cb' => 'sportspress_list_meta_init',
'rewrite' => array( 'slug' => get_option( 'sp_list_slug', 'lists' ) ),
'rewrite' => array( 'slug' => get_option( 'sp_list_slug', 'list' ) ),
'show_in_menu' => 'edit.php?post_type=sp_player',
'show_in_admin_bar' => true,
'capability_type' => 'sp_list'

View File

@@ -19,7 +19,7 @@ function sportspress_table_post_init() {
'hierarchical' => false,
'supports' => array( 'title', 'author', 'thumbnail' ),
'register_meta_box_cb' => 'sportspress_table_meta_init',
'rewrite' => array( 'slug' => get_option( 'sp_table_slug', 'tables' ) ),
'rewrite' => array( 'slug' => get_option( 'sp_table_slug', 'table' ) ),
'show_in_menu' => 'edit.php?post_type=sp_team',
'show_in_admin_bar' => true,
'capability_type' => 'sp_table'