function reset_cron($settings) { if (!isset($settings['atcf_automatic_process'])) { wp_clear_scheduled_hook('atcf_process_payments'); } else { ATCF_Install::cron(); } return $settings; }
function upgrade_routine() { flush_rewrite_rules(); // If we are on 1.8, but their version is older. if ($this->version === '1.8' || !$this->version_db) { ATCF_Install::init(); // Just run the installer again add_option('atcf_version', $this->version); } }
/** * Upgrade to version 1.8. Also called if the db version is not set yet. * * @return void * @access protected * @since 1.8 */ protected function upgrade_1_8() { flush_rewrite_rules(); ATCF_Install::init(); // Just run the installer again }