Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 945 Bytes

appearance.md

File metadata and controls

53 lines (38 loc) · 945 Bytes

wp-admin.$role.appearance

Update, remove or redirect the appearance menu item.

Options;

<?php

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

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?