WP Manifestindependent plugin directory
manifest / admin / wordpress-cleaner

WordPress Cleaner

WordPress admin menu manager

★ 1stars
0.4latest · 2 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/iwillhappy1314/wordpress-cleaner/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

wp-menu-manager

WordPress Element Cleaner

install

composer require wenprise/wordpress-cleaner

usage

$cleaner = new Wenprise\Cleaner();

//Remove top level menu
$cleaner->remove_menu([
    'edit.php',
    'edit.php?post_type=page',
    'edit.php?post_type=activity',
    'edit.php?post_type=comm',
    'upload.php',
    'themes.php',
    'plugins.php',
    'edit-comments.php',
    'tools.php',
    'options-general.php',
]);

$cleaner->remove_submenu('index.php', 10)
             ->remove_submenu('themes.php', [6, 15, 20])
             ->remove_submenu('woocommerce', 'report')
             ->remove_submenu('elementor', 'go_elementor_pro')
             ->remove_submenu('elementor', 'go_knowledge_base_site')
             ->remove_submenu('options-general.php', [10, 15, 20, 25, 30, 40]);

//Remove post metabox
$cleaner->remove_meta_box('commentsdiv', 'post', 'side');

//Remove Dashboard widget
$cleaner->remove_meta_box('dashboard_primary', 'dashboard', 'normal')
        ->remove_meta_box('e-dashboard-overview', 'dashboard', 'normal');

//Remove admin bar links
$cleaner->remove_admin_bar_menu('wp-logo');

if ( ! current_user_can('administrator')) {
    $cleaner->remove_submenu('edit.php?post_type=staff', [15]);
}

// Remove webcome panel
$cleaner->remove_welcome_panel();

Releases

4 releases.

Tag
Published
0.4 latest
Dec 7, 2023 2 years ago
0.3
Aug 7, 2022 4 years ago
0.2
Jun 8, 2021 5 years ago
0.1
Nov 14, 2020 5 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.