Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.14 KB

plugins.plugin-editor.md

File metadata and controls

57 lines (41 loc) · 1.14 KB

wp-admin.$role.plugins.plugin-editor

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

Remove;

Remove from menu;

<?php

return [
    'wp-admin.$role|$username' => [
        'plugins.plugin-editor',
    ],
];

Remove from menu and enforce a page redirect;

<?php

return [
    'wp-admin.$role|$username' => [
        'plugins.plugin-editor' => 'posts',
    ],
];

Bug?