/** * Schedule cron jobs for comments import. */ function wdfb_comment_import() { $data =& Wdfb_OptionsRegistry::get_instance(); if (!$data->get_option('wdfb_comments', 'import_fb_comments')) { return; } // Don't import comments Wdfb_CommentsImporter::serve(); }
function json_import_comments() { Wdfb_CommentsImporter::serve(); echo json_encode(array('status' => 1)); exit; }
/** * @static */ function serve() { $me = new Wdfb_CommentsImporter(); $me->import_comments(); }