its class file. $GLOBALS['wpallstars_github_updater']['1.0.1'] = __DIR__ . '/class-wpallstars-github-updater.php'; if (!function_exists('wpallstars_github_updater_load')) { /** * Load the newest registered copy of the updater (plugins_loaded). */ function wpallstars_github_updater_load() { if (class_exists('WPAllStars_GitHub_Updater', false) || empty($GLOBALS['wpallstars_github_updater'])) { return; } $copies = (array) $GLOBALS['wpallstars_github_updater']; uksort($copies, 'version_compare'); $file = (string) end($copies); if (is_readable($file)) { require_once $file; WPAllStars_GitHub_Updater::load(); } } // Every plugin's main file has run by then, so every copy is registered. add_action('plugins_loaded', 'wpallstars_github_updater_load', 1); }