The cron tag has no wiki summary.
3
votes
2answers
110 views
Running WP Cron on specific local time
The scenario is to run insert_post function every midnight (00:00) of local time. Must run daily on weekday.
function add_daily_task(){
if((date('l', time()) != 'Saturday') || (date('l', time()) ...
2
votes
0answers
44 views
WP Cron emails not working
Running wp 3.5.1.
I have 2 plugins that work in part. They do everything nice. If I click to send emails, they send the emails. However the scheduled emails are not being sent.
The plugins are:
...
2
votes
0answers
75 views
Scheduled Posts and wp-cron - Why don't scheduled posts publish if too old?
I notice that the documentation for wp_schedule_single_event mentions the following:-
The action will fire off when someone visits your WordPress site, if the schedule time has passed.
However ...
1
vote
0answers
59 views
wp_schedule_single_event function not working
I am testing the wp_schedule_single_event function and it is currently not working on my upgraded version of wordpress.
It looks like the event is being scheduled but the code in my hook is never ...
1
vote
0answers
124 views
Is it possible to use `wp_schedule_event` with real cronjobs?
I hate the way Wordpress Cron Jobs run, so I disabled them:
define('DISABLE_WP_CRON', true);
and want to run a real cron job instead:
wget http://www.myserver.com/wp-cron.php > /dev/null ...
1
vote
0answers
23 views
Problems with cron
I have a this code that delete some post meta at al 7:55 hour of the server:
if ( !wp_next_scheduled('borra_meta_datos') ) {
wp_schedule_event( mktime(7, 55, 0, date('n'), date('j')), 'daily', ...
1
vote
0answers
14 views
How ( and mostly at what time ) can i prevent the alternate cron from running?
I'm using the alternate cron version, but i need to prevent it from running on some calls, how can i do this?
In the cron.php file i've seen on line 225
if ( defined('ALTERNATE_WP_CRON') && ...
0
votes
0answers
52 views
Is it safe to run wp-cron.php twice if the first instance takes too long?
Let's say I disabled "DISABLE_WP_CRON" in wp-config.php
Is it OK to run wp-cron.php twice overlapping?
I've noticed sometimes wp-cron.php needs several minutes. I'd give it a full hour but the ...