Remove users 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' => [
'users.all',
'users.all' => (string) $route,
'users.all.title' => (string) $title,
'users.all.title.[menu, page]' => (string) $title,
'users.all.title-link',
'users.all.tabs',
'users.all.tabs.[screen-options, help]',
'users.all.pagination' => (int) $pagination,
'users.all.search',
'users.all.subsets',
'users.all.subsets.[administrator, editor, author, contributor, subscriber]',
'users.all.subsets.counts',
'users.all.actions',
'users.all.actions.bulk',
'users.all.list',
'users.all.list.[cols, actions, count]',
'users.all.list.cols',
'users.all.list.cols.[name, email, role, posts]',
'users.all.list.actions',
'users.all.list.actions.[edit, view, delete]',
'users.all.list.count',
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'users.all',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'users.all' => 'posts',
],
];