• Resolved sixfootjames

    (@sixfootjames)


    Hi,

    We’re trying to hide the WP File manager from the list of plugins.

    All other plugins are hiding except a few, including yours. Could you please let us know why this would be please?

    function hide_plugins_digital() {
    global $wp_list_table;
    $hidearr = array
    (
    ‘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’);

Viewing 1 replies (of 1 total)
  • Plugin Author mndpsingh287

    (@mndpsingh287)

    Hey @sixfootjames,

    change wp-file-manager/index.php’, -> wp-file-manager/file_folder_manager.php’

    Let me know if it works.

    Regards,
    Mandeep

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