function json_import_comments() { Wdfb_CommentsImporter::serve(); echo json_encode(array('status' => 1)); exit; }
/** * 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(); }