function __construct() { parent::__construct(); add_action('keyring_importer_twitter_custom_options', array($this, 'custom_options')); }
function do_auto_import() { $this->set_option('auto_page', 1); parent::do_auto_import(); }
/** * The parent class creates an hourly cron job to run auto import. That's unnecessarily aggressive for * TripIt, so we're going to cut that down to once every 12 hours by just skipping the job depending * on the hour. If we want to run, then call the parent auto_import. */ function do_auto_import() { if (01 == date('H') || 12 == date('H')) { parent::do_auto_import(); } }