die("Please do not call this code directly!");
}
-require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataFeedImport.php';
/*
* This class performs all necessary additional work when this
* plugin is deactivated.
{
// clear the cron schedule for this plugin
wp_clear_scheduled_hook( GLM_MEMBERS_EVENTS_PLUGIN_CRON_EVENT );
- $importFeeds = new GlmDataFeedImport( $this->wpdb, $this->config );
- $import_feeds = $importFeeds->getList();
+ $import_feeds = $this->wpdb->get_results(
+ "SELECT id
+ FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "feed_import",
+ ARRAY_A
+ );
if ( $import_feeds ) {
- foreach ( $import_feeds as $key => &$feed ) {
- // check the next run time
+ foreach ( $import_feeds as $key => $feed ) {
+ // clear the scheduled hook for this feed_import id
wp_clear_scheduled_hook( GLM_MEMBERS_EVENTS_PLUGIN_CRON_EVENT, array( (int)$feed['id'] ) );
}
}