WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] How often does the plugin check and import comments? (3 posts)

  1. chris79
    Member
    Posted 2 years ago #

    I installed this plugin today (the lite version) and my test post appeared on my Facebook page immediately. Perfect!

    I also added some test comments on Facebook and they haven't been imported back to my blog yet. Does that run on a schedule? How often does it go? I have ticked the box for "import comments" and also "automatically approve". But I'm not seeing the comments and there's nothing about imports in the debug file either. Is there something else I need to do or a way I can test what's wrong?

    http://wordpress.org/extend/plugins/wpbook/

  2. chris79
    Member
    Posted 2 years ago #

    It worked in the end. What file can I edit to change the schedule? I want the comments to be imported faster when I have new posts up.

  3. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    It is currently set to hourly.

    You can change it at line 69 of wpbook.php in the activate function:

    function wpbook_activate() {
      wpbook_activation_check();
      $dummy=wp_clear_scheduled_hook('wpbook_cron_job');
    	$dummy=wp_schedule_event(time(), 'hourly', 'wpbook_cron_job');
    }

    Though first you would need to check the codex on wp_schedule_event to make a more frequent schedule than hourly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.