WordPress.org

Forums

autoblog webiste - WordPress plugins schedule_event (3 posts)

  1. onigetoc
    Member
    Posted 4 years ago #

    Hi, i created a auto blog WordPress plugins (G-trends) to add News from Google Yahoo or bing every hour.
    Demo site http://www.allotoi.com/
    How can i start a wp_schedule_event exactly 1 minutes past every hours.

    Because if you set a schedule event like this, it will start at the time we are right now
    wp_schedule_event(time(), 'hourly', 'my_hourly_event')

    Not at the exacte time i want like 01h01

    Thank you

  2. Vicente
    Member
    Posted 3 years ago #

    Just replace time() with a defined variable:
    $time = strtotime("today 0 hours 1 minutes 0 seconds");
    now
    $time is a fixed value to schedule your event...
    then 'hourly' repeats every hour at xxh 01m 00s.

  3. onigetoc
    Member
    Posted 3 years ago #

    thank you, i will try that

Topic Closed

This topic has been closed to new replies.

About this Topic