WordPress.org

Ready to get started?Download WordPress

Forums

Content Scheduler
[resolved] email notification sending every hour! (5 posts)

  1. black_lady
    Member
    Posted 1 year ago #

    hello,
    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 :)

    http://wordpress.org/extend/plugins/content-scheduler/

  2. jfreake
    Member
    Posted 1 year ago #

    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

  3. Marinko
    Member
    Posted 1 year ago #

    Same here. For example, mails was sent at:
    10:36am
    11:46am
    1:24pm
    2:09pm
    2:40pm

    and so on...

  4. jfreake
    Member
    Posted 1 year ago #

    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 );
    AND
    wp_schedule_event( time(), 'hourly', 'content_scheduler_notify' );

    to this:
    wp_schedule_event( time(), 'daily', 'content_scheduler_notify_'.$current_blog_id );
    AND
    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.
    J

  5. Paul Kaiser
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic