Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.08 KB

tools.available.md

File metadata and controls

57 lines (41 loc) · 1.08 KB

wp-admin.$role.tools.available

Remove tools available 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' => [
        'tools.available',
        'tools.available' => (string) $route,
        'tools.available.title' => (string) $title,
        'tools.available.title.[menu, page]' => (string) $title,
        'tools.available.tabs',
        'tools.available.tabs.[screen-options, help]',
    ],
];

Remove;

Remove from menu;

<?php

return [
    'wp-admin.$role|$username' => [
        'tools.available',
    ],
];

Remove from menu and enforce a page redirect;

<?php

return [
    'wp-admin.$role|$username' => [
        'tools.available' => 'posts',
    ],
];

Bug?