Habari\Update::add_plugins PHP Метод

add_plugins() приватный статический Метод

Loop through all the active plugins and add their information to the list of plugins to check for updates.
private static add_plugins ( )
    private static function add_plugins()
    {
        $plugins = Plugins::get_active();
        foreach ($plugins as $plugin) {
            // name and version are required in the XML file, make sure GUID is set
            if (!isset($plugin->info->guid)) {
                continue;
            }
            Update::add($plugin->info->name, $plugin->info->guid, $plugin->info->version);
        }
    }