Move league table and player list menu positions
This commit is contained in:
@@ -12,7 +12,7 @@ function sp_list_cpt_init() {
|
||||
'supports' => array( 'title', 'author' ),
|
||||
'register_meta_box_cb' => 'sp_list_meta_init',
|
||||
'rewrite' => array( 'slug' => 'list' ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_event'
|
||||
'show_in_menu' => 'edit.php?post_type=sp_player'
|
||||
);
|
||||
register_post_type( 'sp_list', $args );
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ function sp_table_cpt_init() {
|
||||
'supports' => array( 'title', 'author', 'excerpt' ),
|
||||
'register_meta_box_cb' => 'sp_table_meta_init',
|
||||
'rewrite' => array( 'slug' => 'table' ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_event'
|
||||
'show_in_menu' => 'edit.php?post_type=sp_team'
|
||||
);
|
||||
register_post_type( 'sp_table', $args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user