Remove tools export 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' => [
'tools.export',
'tools.export' => (string) $route,
'tools.export.title' => (string) $title,
'tools.export.title.[menu, page]' => (string) $title,
'tools.export.tabs',
'tools.export.tabs.[screen-options, help]',
],
];
Remove from menu;
<?php
return [
'wp-admin.$role|$username' => [
'tools.export',
],
];
Remove from menu and enforce a page redirect;
<?php
return [
'wp-admin.$role|$username' => [
'tools.export' => 'posts',
],
];