wp-cron refers to a WordPress subsystem that allows for the scheduled execution of code
0
votes
1answer
22 views
Better handling of WP-CRON server load abuse
There are multiple reports on how wp-cron is a far from ideal solution because it runs every time a page is loaded, which is unnecessary in most scenarios (one scenario in which it would be necessary ...
0
votes
1answer
26 views
Are uploads directories created on a schedule?
I have a cron job that alerts me to modified files on a couple of WordPress installs. Two of them alerted me tonight to the creation of apparently empty folders like
...
0
votes
2answers
326 views
Cron Job not working in plugin
I have written a plugin that will convert posts to excel format and then email the .xls to an email id. I can make it work with when function is declared in functions.php but does not work with ...
0
votes
1answer
36 views
How to make wp cron job not fire immediately?
I'm scheduling a job in wp cron:
add_action('my_cron_hook', 'my_cron_action');
wp_schedule_event( time(), 'interval1', 'my_cron_hook' );
function my_cron_action(){
//do something
}
The ...
0
votes
1answer
66 views
Managing scheduled tasks
I want users of my plugin to be able to define whether a task operates daily, twice daily, hourly or not at all as per the standard WP set-up. I'm storing these as 'daily', 'twicedaily', 'hourly' or ...
0
votes
1answer
70 views
Create wp_cront events dynamically upon user submission
Is it possible to set up new wp_cron jobs dynamically upon a certain action?
I have a form submission (I'm using Gravity Forms, so have several functions set up on several of their hooks already) ...
0
votes
1answer
45 views
Running a function on post content and CPT meta
As per this thread I'm scheduling a wp_cron every hour which runs a function. The function I'm running is reasonably lengthy and I didn't want authors to have to deal with the waiting times.
My ...
0
votes
1answer
274 views
A unique wp_schedule_single_event() for each post?
I'm building a site for a client that requires sending out emails about each post at various dates (i.e. two weeks before after the post was published, then again four weeks after the post was ...
0
votes
1answer
89 views
How to move post process to background
We have a large wp install that is freezing up whenever an editor hits "publish". It seems that the culprit is the pinging processes that run, such as re-building the sitemap, etc.
Is it possible to ...
0
votes
1answer
62 views
How to parse a huge list of users using a CRON function?
I have several thousand users subrscribed to a WP website. Everyday I need to send an email to each user. The emails are custom generated depending on the data of several custom user profile fields. ...
0
votes
1answer
110 views
What is the most efficient way to execute recursive complex queries?
There's a "Jobs" section on my website (custom post type), with various associated taxonomies (language spoken, type of contract, location, etc.) The website also has a very big user base (about 10 ...
0
votes
3answers
511 views
What causes wp_schedule_single_event to fire off?
This isn't as simple of a question as you may think. Basically I have a C# program that is hitting the worpdress site and the wp_schedule doesn't seem to fire off. If I go to the site with my firefox ...
0
votes
0answers
15 views
Scheduling daily refresh of posts
So here's my situation: I'm using AmazonSimpleAdmin to display products using the Amazon API. I have one product per post. The API limits 1 request per second. Meaning my front page can only have one ...
0
votes
1answer
43 views
wp-cron: freeze at “now”
sorry for the silly question. Briefly I have a wp (v. 3.5.1) blog using a heavily modified (by myself) theme. Everything works fine except for wp-cron. Listed jobs appears in (for instance) crontrol ...
0
votes
0answers
29 views
Missed Schedule alert on dashboard?
Is there a way to pull a list of posts that have missed their schedule and display them on the dashboard?
I'm having an issue with missed schedule posts sometimes and don't want to use the plugin ...
0
votes
0answers
27 views
wp_schedule_event attempt causes T_CONSTANT_ENCAPSED_STRING error
I'm developing a plugin and am trying to set up a recurring event for it. However, even putting the function that I'm about to link to an activation hook in my file causes wordpress to throw this ...
0
votes
0answers
83 views
“Wordpress Firewall 2” Causes 403 Forbidden Error in wp-cron.php Thwarting “BackUpWordPress”
My web sites have been hacked in the past, so I set up certain security features on each site like a firewall plugin, for instance. In fact, the week after I forgot to re-enable the firewall when ...
0
votes
0answers
22 views
wp_schedule_single_event works on local but not on live
I'm using the wp_schedule_single_event() function to email an author designated "Important Post" to all users of a site one second after saving the post (so that it runs in the background and the ...
0
votes
1answer
30 views
Problem trying to create a cron job in wordpress [closed]
I am trying to create cron events in wp, to if the cron jobs have been created I am using this plugin: WP-Cron Dashboard.
To create the cron job in a plugin i do this:
...
$action_tag_name ...
0
votes
1answer
170 views
Wordpress schedule posting not working, if i added define('DISABLE_WP_CRON', false); how do i fix it?
I have Wordpress 3.5.1 and I use Bluehost hosting service. When I schedule posts after that time passed, WP posts dashboard shows "Missed schedule" message under the date. Then I checked my ...
0
votes
1answer
101 views
How do you make a custom post type items automatically delete items 3 months after publication?
I'd like somer code that I can place in my functions.php file that will only modify the specified custom post type.
I have already tried several plugins, but all of them have more features than I ...
0
votes
0answers
94 views
Debugging a WPCron function
I'm trying to run a WP cron job which, every hour, checks for recently created/updated posts and runs a filter on them.
if ( $post->post_type == "species" ) {
$meta = get_post_custom( ...
