Remove posts all/index components.
- Parent items remove child items.
- For concise documentation,
option.[x, y]
has been abbreviated fromoption.x, option.y
.
<?php
return [
'wp-admin.$role|$username' => [
'posts.all',
'posts.all' => (string) $route,
'posts.all.title' => (string) $title,
'posts.all.title.[menu, page]' => (string) $title,
'posts.all.title-link',
'posts.all.tabs',
'posts.all.tabs.[screen-options, help]',
'posts.all.pagination' => (int) $pagination,
'posts.all.search',
'posts.all.subsets',
'posts.all.subsets.[all, published, scheduled, draft, pending]',
'posts.all.subsets.counts',
'posts.all.actions',
'posts.all.actions.bulk',
'posts.all.filter',
'posts.all.filter.[date, category]',
'posts.all.list',
'posts.all.list.cols',
'posts.all.list.cols.[author, categories, tags, comments, date]',
'posts.all.list.actions',
'posts.all.list.actions.[edit, quick-edit, trash, view]',
'posts.all.list.count',
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'posts.all',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'posts.all' => 'pages',
],
];