made nicer read for the capabilities
This commit is contained in:
parent
99bae4b6d5
commit
4a983531a6
|
@ -52,14 +52,14 @@
|
|||
// https://wordpress.stackexchange.com/questions/108338/capabilities-and-custom-post-types#108375
|
||||
// https://developer.wordpress.org/reference/functions/register_post_type/#capability_type
|
||||
$capabilities = array(
|
||||
'read' => 'archive_read_resource',
|
||||
'publish_posts' => 'archive_publish_resources',
|
||||
'edit_posts' => 'archive_edit_resources',
|
||||
'edit_published_posts' => 'archive_edit_published_resources',
|
||||
'edit_others_posts' => 'archive_edit_other_resources',
|
||||
'delete_posts' => 'archive_delete_resources',
|
||||
'delete_published_posts' => 'archive_delete_published_resources',
|
||||
'delete_others_posts' => 'archive_delete_others_resources',
|
||||
'read' => 'arcHIVE Read resources',
|
||||
'publish_posts' => 'arcHIVE Publish resources',
|
||||
'edit_posts' => 'arcHIVE Edit resources',
|
||||
'edit_published_posts' => 'arcHIVE Edit published resources',
|
||||
'edit_others_posts' => 'arcHIVE Edit others resources',
|
||||
'delete_posts' => 'arcHIVE Delete resources',
|
||||
'delete_published_posts' => 'arcHIVE Delete published resources',
|
||||
'delete_others_posts' => 'arcHIVE Delete others resources',
|
||||
// 'delete_private_posts' => 'archive_delete_private_resources',
|
||||
);
|
||||
$args = array(
|
||||
|
@ -137,10 +137,10 @@ add_action( 'admin_init', 'archive_wpplugin_add_caps');
|
|||
'slug' => 'resource-type',
|
||||
);
|
||||
$capabilities = array(
|
||||
'manage_terms' => 'archive_manage_resources_types',
|
||||
'edit_terms' => 'archive_edit_resources_types',
|
||||
'delete_terms' => 'archive_delete_resources_types',
|
||||
'assign_terms' => 'archive_assign_resources_types',
|
||||
'manage_terms' => 'arcHIVE Manage resources Types',
|
||||
'edit_terms' => 'arcHIVE Edit resource Types',
|
||||
'delete_terms' => 'arcHIVE Delete resources Types',
|
||||
'assign_terms' => 'arcHIVE Assign resources Types',
|
||||
);
|
||||
$args = array(
|
||||
'labels' => $labels,
|
||||
|
@ -186,10 +186,10 @@ add_action( 'admin_init', 'archive_wpplugin_add_caps');
|
|||
// 'with_front' => false,
|
||||
);
|
||||
$capabilities = array(
|
||||
'manage_terms' => 'archive_manage_resources_tag',
|
||||
'edit_terms' => 'archive_edit_resources_tag',
|
||||
'delete_terms' => 'archive_delete_resources_tag',
|
||||
'assign_terms' => 'archive_assign_resources_tag',
|
||||
'manage_terms' => 'arcHIVE Manage resources Tag',
|
||||
'edit_terms' => 'arcHIVE Edit resource Tag',
|
||||
'delete_terms' => 'arcHIVE Delete resources Tag',
|
||||
'assign_terms' => 'arcHIVE Assign resources Tag',
|
||||
);
|
||||
|
||||
$args = array(
|
||||
|
|
Loading…
Reference in New Issue