Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.08 KB

dashboard.updates.md

File metadata and controls

57 lines (41 loc) · 1.08 KB

wp-admin.$role.dashboard.updates

Remove dashboard updates 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' => [
        'dashboard.updates',
        'dashboard.updates' => (string) $route,
        'dashboard.updates.title' => (string) $title,
        'dashboard.updates.title.[menu, page]' => (string) $title,
        'dashboard.updates.tabs',
        'dashboard.updates.tabs.help',
    ],
];

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?