Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.01 KB

tools.site-health.md

File metadata and controls

55 lines (39 loc) · 1.01 KB

wp-admin.$role.tools.site-health

Remove tools site-health 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' => [
        'tools.site-health',
        'tools.site-health' => (string) $route,
        'tools.site-health.title' => (string) $title,
        'tools.site-health.title.[menu, page]' => (string) $title,
    ],
];

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?