Remove posts categories item 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.item',
'posts.categories.item' => (string) $route,
'posts.categories.item.title' => (string) $title,
'posts.categories.item.title.page' => (string) $title,
'posts.categories.item.slug',
'posts.categories.item.parent',
'posts.categories.item.description',
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'posts.categories.item',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'posts.categories.item' => 'pages',
],
];