• Resolved sixfootjames

    (@sixfootjames)


    Hi.

    I am trying to hide ManageWP plugin from the plugins list in order for people not to delete it. All the other plugins are mostly working except for a few

    function hide_plugins_digital() {
    global $wp_list_table;
    $hidearr = array
    (
    ‘worker/index.php’,
    ‘wp-file-manager/index.php’,
    ‘wp-mail-smtp/wp_mail_smtp.php’,
    ‘wordpress-seo/wp-seo.php’);

    $myplugins = $wp_list_table->items;
    foreach ($myplugins as $key => $val) {
    if (in_array($key,$hidearr)) {
    unset($wp_list_table->items[$key]);
    }
    }
    }

    add_action(‘pre_current_active_plugins’, ‘hide_plugins_digital’);

    Could you let me know what the problem here is please?

Viewing 1 replies (of 1 total)
  • tazz

    (@tazwordpress)

    Hi James,
    ManageWP have White Label feature integrated into the dashboard as one of the premium add-ons. https://managewp.com/features/white-label

    Simply turn on the White label add-on and choose the option to “Hide ManageWP Worker from the plugin/widget list“.

    No need for writing scripts or troubleshooting.

Viewing 1 replies (of 1 total)
  • The topic ‘How to hide ManageWP from Plugins list’ is closed to new replies.