public function showInAdmin($show, $type)
    {
        $screen = get_current_screen();
        $current = is_multisite() ? 'plugins-network' : 'plugins';

        if ($screen->{'base'} != $current || $type != 'mustuse' || !current_user_can('activate_plugins')) {
            return $show;
        }

        $this->updateCache();

        self::$auto_plugins = array_map(function ($auto_plugin) {
            return $auto_plugin;
        }, self::$auto_plugins);

        $GLOBALS['plugins']['mustuse'] = array_unique(array_merge(self::$auto_plugins, self::$mu_plugins), SORT_REGULAR);

        return false;
    }
public function showInAdmin($show, $type)
    {
        $screen = get_current_screen();
        $current = is_multisite() ? 'plugins-network' : 'plugins';

        if ($screen->{'base'} != $current || $type != 'mustuse' || !current_user_can('activate_plugins')) {
            return $show;
        }

        $this->updateCache();

        self::$auto_plugins = array_map(function ($auto_plugin) {
            return $auto_plugin;
        }, self::$auto_plugins);

        $GLOBALS['plugins']['mustuse'] = array_unique(array_merge(self::$auto_plugins, self::$mu_plugins), SORT_REGULAR);

        return false;
    }
public function showInAdmin ( $ show , $ type ) { $ screen = get_current_screen ( ) ; $ current = is_multisite ( ) ? 'plugins-network' : 'plugins' ; if ( $ screen -> { 'base' } != $ current || $ type != 'mustuse' || ! current_user_can ( 'activate_plugins' ) ) { return $ show ; } $ this -> updateCache ( ) ; self :: $ auto_plugins = array_map ( function ( $ auto_plugin ) { return $ auto_plugin ; } , self :: $ auto_plugins ) ; $ GLOBALS [ 'plugins' ] [ 'mustuse' ] = array_unique ( array_merge ( self :: $ auto_plugins , self :: $ mu_plugins ) , SORT_REGULAR ) ; return false ; }
Filter show_advanced_plugins to display the autoloaded plugins.
@param $bool bool Whether to show the advanced plugins for the specified plugin type.
@param $type string The plugin type, i.e., `mustuse` or `dropins`
@return bool We return `false` to prevent WordPress from overriding our work
{@internal We add the plugin details ourselves, so we return false to disable the filter.}
Filter show_advanced_plugins to display the autoloaded plugins .