Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.6 KB

posts.categories.all.md

File metadata and controls

67 lines (51 loc) · 1.6 KB

wp-admin.$role.posts.categories.all

Remove posts categories 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' => [
        '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;

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

Bug?