Add proper permissions to admin role
This commit is contained in:
@@ -14,7 +14,7 @@ function sportspress_calendar_post_init() {
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_calendar_slug', 'calendars' ) ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_event',
|
||||
'show_in_admin_bar' => true,
|
||||
// 'capability_type' => 'sp_calendar'
|
||||
'capability_type' => 'sp_calendar'
|
||||
);
|
||||
register_post_type( 'sp_calendar', $args );
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ function sportspress_table_post_init() {
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_table_slug', 'tables' ) ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_team',
|
||||
'show_in_admin_bar' => true,
|
||||
// 'capability_type' => 'sp_table'
|
||||
'capability_type' => 'sp_table'
|
||||
);
|
||||
register_post_type( 'sp_table', $args );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user