Remove dashboard updates components.
- Parent items remove child items.
- For concise documentation,
option.[x, y]
has been abbreviated fromoption.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 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',
],
];