Remove posts categories 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.categories.all',
'posts.categories.all' => (string) $route,
'posts.categories.all.title' => (string) $title,
'posts.categories.all.title.[menu, page]' => (string) $title,
'posts.categories.all.tabs',
'posts.categories.all.tabs.[screen-options, help]',
'posts.categories.all.search',
'posts.categories.all.actions',
'posts.categories.all.actions.bulk',
'posts.categories.all.list',
'posts.categories.all.list.cols',
'posts.categories.all.list.cols.[description, slug, count]',
'posts.categories.all.list.actions',
'posts.categories.all.list.actions.[edit, quick-edit, trash, view]',
'posts.categories.all.list.count',
'posts.categories.all.notes',
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'posts.categories.all',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'posts.categories.all' => 'pages',
],
];