Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.16 KB

posts.categories.item.md

File metadata and controls

58 lines (42 loc) · 1.16 KB

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

Remove posts categories item 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.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;

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

Bug?