Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.04 KB

tools.export.md

File metadata and controls

57 lines (41 loc) · 1.04 KB

wp-admin.$role.tools.export

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

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?