Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.26 KB

settings.writing.md

File metadata and controls

61 lines (45 loc) · 1.26 KB

wp-admin.$role.settings.writing

Remove settings writing 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.writing',
        'settings.writing' => (string) $route,
        'settings.writing.title' => (string) $title,
        'settings.writing.title.[menu, page]' => (string) $title,
        'settings.writing.tabs',
        'settings.writing.tabs.[screen-options, help]',
        'settings.writing.default-category',
        'settings.writing.default-post-format',
        'settings.writing.post-via-email',
        'settings.writing.update-services',
    ],
];

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?