Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 900 Bytes

users.md

File metadata and controls

53 lines (38 loc) · 900 Bytes

wp-admin.$role.users

Update, remove or redirect the users menu item.

Options;

<?php

return [
    'wp-admin.$role|$username' => [
        'users',
        'users' => (string) $route,
        'users.title' => (string) $title,
        'users.icon' => (string) $dashicon,
    ],
];

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?