Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 936 Bytes

dashboard.md

File metadata and controls

53 lines (38 loc) · 936 Bytes

wp-admin.$role.dashboard

Update, remove or redirect the dashboard menu item.

Options;

<?php

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

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?