示例#1
0
 /**
  * Instantiate
  *
  * @since 1.1
  *
  * @return type
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new CPM_Upgrade();
     }
     return self::$_instance;
 }
示例#2
0
 /**
  * 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');
 }
示例#3
0
 /**
  * Runs the setup when the plugin is installed
  *
  * @since 0.3.1
  */
 function install()
 {
     $update = CPM_Upgrade::getInstance();
     $update->plugin_upgrades();
 }