Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 1.62 KB

users.all.md

File metadata and controls

72 lines (56 loc) · 1.62 KB

wp-admin.$role.users.all

Remove users all/index components.

Options;

  • Parent items remove child items.
  • For concise documentation, option.[x, y] has been abbreviated from option.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;

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',
    ],
];

Bug?