Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.25 KB

settings.permalinks.md

File metadata and controls

60 lines (44 loc) · 1.25 KB

wp-admin.$role.settings.permalinks

Remove settings permalinks 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' => [
        'settings.permalinks',
        'settings.permalinks' => (string) $route,
        'settings.permalinks.title' => (string) $title,
        'settings.permalinks.title.[menu, page]' => (string) $title,
        'settings.permalinks.tabs',
        'settings.permalinks.tabs.[screen-options, help]',
        'settings.permalinks.common',
        'settings.permalinks.optional',
        'settings.permalinks.optional.[category, tag]',
    ],
];

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?