/** * Instantiate * * @since 1.1 * * @return type */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new CPM_Upgrade(); } return self::$_instance; }
/** * Runs the setup when the plugin is installed * * @since 0.3.1 */ function install() { CPM_Upgrade::getInstance()->plugin_upgrades(); wp_schedule_event(time(), 'daily', 'cpm_daily_digest'); }
/** * Runs the setup when the plugin is installed * * @since 0.3.1 */ function install() { $update = CPM_Upgrade::getInstance(); $update->plugin_upgrades(); }