Support » Plugin: Content Scheduler » email notification sending every hour!

  • Resolved black_lady


    I set expiration date in my post on 21.03.2013 4:00, and Notify before expiration I set “Notify 1 days before expiration.”. I’m reciving emails “Pending Notification from …” every hour: 5:00, 6:00, 7:00 etc…
    Is it possible to set notification that will be send one email one day before expiration?

    Please for answer and sorry for my English 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same here. Not every hour but more frequently than we would like. (many times per day.)

    Expiration frequency (in minutes): = 5000
    Notify before expiration: = 14
    Plugin version: 0.9.8

    A look at the cron information shows:
    Once Hourly: content_scheduler_notify, every 60 mins
    CS User Configured: content_scheduler, every 3 days

    Same here. For example, mails was sent at:

    and so on…

    In the meantime, until the plugin gets updated, you can tweak the notifications to get generated daily instead of hourly by changing the 4 hourly references in content-scheduler.php

    from this:
    wp_schedule_event( time(), ‘hourly’, ‘content_scheduler_notify_’.$current_blog_id );
    wp_schedule_event( time(), ‘hourly’, ‘content_scheduler_notify’ );

    to this:
    wp_schedule_event( time(), ‘daily’, ‘content_scheduler_notify_’.$current_blog_id );
    wp_schedule_event( time(), ‘daily’, ‘content_scheduler_notify’ );

    After making the code change, go to the plugin options page and re-save your options.
    This worked for me.

    Plugin Author Paul Kaiser


    Gang, I’ve pushed a version 1 update. Regarding notifications, the update only notifies you upon expiration.
    The problem we were seeing resulted from trying to notify you ahead of time, e.g., “Hey, this content is going to expire soon.”
    I can add that functionality back later (better…) but wanted to get a fix in and out to everyone.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘email notification sending every hour!’ is closed to new replies.