Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.05 KB

users.add.md

File metadata and controls

58 lines (42 loc) · 1.05 KB

wp-admin.$role.users.add

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

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?