Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 975 Bytes

posts.md

File metadata and controls

55 lines (39 loc) · 975 Bytes

wp-admin.$role.posts

Update, remove or redirect the posts menu item.

Options;

<?php

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

Remove;

Remove from menu;

<?php

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

Remove from menu and enforce a page redirect;

<?php

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

Bug?