mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 03:36:28 +09:00
- fixed capabilities for UM custom post types;
This commit is contained in:
@@ -34,14 +34,14 @@ if ( ! class_exists( 'Common' ) ) {
|
||||
'search_items' => __('Search Forms')
|
||||
),
|
||||
'capabilities' => array(
|
||||
'edit_post' => 'update_core',
|
||||
'read_post' => 'update_core',
|
||||
'delete_post' => 'update_core',
|
||||
'edit_posts' => 'update_core',
|
||||
'edit_others_posts' => 'update_core',
|
||||
'delete_posts' => 'update_core',
|
||||
'publish_posts' => 'update_core',
|
||||
'read_private_posts' => 'update_core'
|
||||
'edit_post' => 'manage_options',
|
||||
'read_post' => 'manage_options',
|
||||
'delete_post' => 'manage_options',
|
||||
'edit_posts' => 'manage_options',
|
||||
'edit_others_posts' => 'manage_options',
|
||||
'delete_posts' => 'manage_options',
|
||||
'publish_posts' => 'manage_options',
|
||||
'read_private_posts' => 'manage_options'
|
||||
),
|
||||
'show_ui' => true,
|
||||
'show_in_menu' => false,
|
||||
@@ -63,14 +63,14 @@ if ( ! class_exists( 'Common' ) ) {
|
||||
'search_items' => __('Search Member Directories')
|
||||
),
|
||||
'capabilities' => array(
|
||||
'edit_post' => 'update_core',
|
||||
'read_post' => 'update_core',
|
||||
'delete_post' => 'update_core',
|
||||
'edit_posts' => 'update_core',
|
||||
'edit_others_posts' => 'update_core',
|
||||
'delete_posts' => 'update_core',
|
||||
'publish_posts' => 'update_core',
|
||||
'read_private_posts' => 'update_core'
|
||||
'edit_post' => 'manage_options',
|
||||
'read_post' => 'manage_options',
|
||||
'delete_post' => 'manage_options',
|
||||
'edit_posts' => 'manage_options',
|
||||
'edit_others_posts' => 'manage_options',
|
||||
'delete_posts' => 'manage_options',
|
||||
'publish_posts' => 'manage_options',
|
||||
'read_private_posts' => 'manage_options'
|
||||
),
|
||||
'show_ui' => true,
|
||||
'show_in_menu' => false,
|
||||
|
||||
Reference in New Issue
Block a user