The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
27 views

Woocommerce product_cat in cron job

I'm working on a wordpress plugin that fetches data from a Woocommerce shop. One of the things the plugin can do is generate an xml report from the shops data. Now I want to add a cron job to the ...
0
votes
1answer
567 views

is WGET correct for this cron job?

I'm using Bluehost which gives the option to set up a cron job with the command, and then they give you settings options for setting the timing the job should run. I think I have these commands set up ...
2
votes
0answers
14 views

crontab wp-cron.php on multisite path-based network: one for each path? Or just one for the root?

I have a single wordpress with multisite config enabled: define( 'WP_ALLOW_MULTISITE', true ); I want disable internal cron in wp-config.php with: define('DISABLE_WP_CRON', true); My multisite ...
1
vote
2answers
3k views

wp_schedule_event not working?

I cannot get a Wordpress cron to trigger. I am trying to run this code to see if I can get an email sent to me hourly. It's taken directly from the Wordpress examples here: http://codex.wordpress.org/...
0
votes
0answers
12 views

Automate Search Replace wp_posts content

I am currently replacing wp_posts content using the below sql query update wp_posts set post_content = replace(post_content,'old text','new text'); I use phpmyadmin currently. However I would want ...
1
vote
3answers
728 views

Run function at specific time

I have a WordPress function that I want to run once daily at a specific time. How should I go about doing this, since WP cron cannot be set to a particular time?
0
votes
1answer
26 views

Remove Featured Images from Posts Older Than a Certain Date

I run a network of sites, with hundreds of editors, and lately we've had image copyright trolls coming after us. Most of these images are a year old or older, so we're looking to remove all images ...
0
votes
0answers
28 views

Set up a wp_cron to work daily, and set up a real cpanel chron, but its not working

So I followed all the instructions on this page https://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-replace-wordpress-cron-with-a-real-cron-job disabled wp_cron, and ...
0
votes
0answers
32 views

WordPress Scheduled Task Not Firing

I want to echo a string after a time period using WordPress scheduling. Below is my code in functions.php. Nothing gets printed through echo statement and also there is no error. Please guide what am ...
0
votes
1answer
49 views

WordPress: Cron locking and Queue

I have some CPU intensive scripts that I don't want to run concurrently. Every now and again the scripts will overlap and crash the server. Already at 2GB and the mysql container still crashes. I ...
0
votes
0answers
18 views

How to have a cron execute at a certain time on a certain day of the week

What's the best way to set a WP cron to fire once every Friday at 7PM EST? I know I could do something like the following, but if I understand correctly it will fire once right away, then reschedule a ...
7
votes
1answer
3k views

Delete all scheduled events with a particular hook

I have several cron jobs all hooked to the same hook, but each with a different argument (a post ID). It appears wp_clear_scheduled_hook only clears job which match the argument passed with it (or ...
0
votes
1answer
805 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 ...
0
votes
0answers
36 views

Cron and WP Super Cache in Preload Mode

I disabled WordPress Cron and configured a real Cron (Linux Cron) to hit wp-cron.php every 8 hours, but I'm not sure how it affects the behavior of WP Super Cache in Preload Mode. As far as I know, ...
4
votes
1answer
109 views

Wordpress cron isn't scheduled on amazon web services

I'm trying to setup a cron to run every hour, it works fine on my local vagrant box, but it doesn't seem to schedule properly on aws(elastic beanstalk). Here's the code: register_activation_hook(...
0
votes
1answer
175 views

cron job to auto delete posts of a specific post type older than x days

I want to delete all posts of a specific post type (in this case "vfb_entry") that are older than 60 days. The cron job should run once a day. I have the following code but it's not working if I ...
1
vote
1answer
163 views

WordPress Cron Job in Bookly Plugin [closed]

Hell, Friends. I am using WordPress Bookly Plugin. I want to send emails to customers daily using cron. Plugin is aksing this words to me "To send scheduled notifications please execute the following ...
0
votes
0answers
20 views

wp_schedule_event get value from database Not Working

I'm develop plugin auto post, but my event schedule not working. the function only work when browser open. i get data from database. i want have dynamic dropdown add_filter( 'cron_schedules', '...
0
votes
2answers
51 views

Wordpress cron is running with previously set time intervals and not the updated one

For testing purposes I keep short time intervals for cron and when the functionality is working fine, I change it to the required time interval. Whenever I change the time intervals for ex: from '...
1
vote
0answers
33 views

Cron job not working - Can't see in the queue attached

I have a custom schedule defined for a cron job to be triggered. This is how my code looks: <?php //wp-config define('DISABLE_WP_CRON', true); //Plugin file register_activation_hook( '__FILE__', '...
1
vote
2answers
142 views

Run function with linux cron job in Wordpress

I know that WordPress has a faux cron that is called like so when a user visits the page. register_activation_hook(__FILE__, 'my_activation'); add_action('my_hourly_event', 'do_this_hourly'); ...
0
votes
1answer
101 views

WP Cron as Fast as WordPress AJAX?

I have a question about performing a very long and resource intensive task within WordPress. Here is the scenario. I have a plugin that allows users to run a task that takes a very long time and ...
0
votes
0answers
28 views

How to setup a mail list with 2 hour autoresponder?

I have a WordPress blog and I want to put my product behind a subscribe list sign up. Here are my requirements: Need subscribe list to work with WordPress or Dreamhost (my hosting company is ...
3
votes
1answer
186 views

Multiple wp_schedule_event cron jobs in plugin cause multi-execution

over the last week I have been working on some cron jobs for a real-estate website that has hundreds of updates/deletes and new posts added each day. I am very near the end now and looking to ...
0
votes
1answer
219 views

How to make mailing queue using php's mail() function

I have a site running WordPress 4.3.1 and a hosts mail() limit of 14 mails per 5 minutes (Which is 2 mails per minute) and cron limit of min 5 minutes, and I am running everyone can register, Profile ...
1
vote
0answers
24 views

Can you register two cron events in a single function?

Take the following: public static function activate() { wp_schedule_event( time(), 'twicedaily', 'process_rss_items' ); wp_schedule_event( time(), 'minute_15', 'process_top_news' ); } // end ...
1
vote
0answers
88 views

“Error establishing database connection” when trying to run script through crontab

I'm trying to run a function every 60 minutes using crontab in an elasticbeanstalk environment in AWS, this is my cron: */2 * * * * cd /var/www/html; /usr/bin/php /var/www/html/import_jobs_cron.php ...
4
votes
3answers
4k views

Delete thousands of cron jobs

I discovered that I have 29,000 cron jobs in my WordPress database from deactivated and deleted plugins. I have tried a number of optimizer plugins but the huge number of cron jobs means I can't ...
0
votes
1answer
331 views

Plugin has a cron job, but the function doesn't actually run

I've been working on a Wordpress plugin, and it requires a cron job to do some work. I've got the job setup and scheduled and I can see it in the cron using one of the plugins which lets you see the ...
0
votes
0answers
96 views

What is the cron doing?

So I installed the P3 plugin to analyze the plugin load time at my site. It was OK at the actually analyzing but just a really poor plugin that basically crashed my server which has great specs over ...
0
votes
1answer
161 views

Huge cron option_value into wp_options table

I recently noticed after performance errors and failure that the memory that a single request was consuming (either front or back) was increased rapidly. After hours of experiments and research I ...
0
votes
1answer
51 views

Cancel/Stop a currently ongoing scheduled cron event?

If I scheduled a CPU-intensive job via a cron scheduled event, how do I go about stopping it or cancelling the job while it is currently running?
0
votes
0answers
181 views

Email Inactive User on WordPress

I have seen this question all over but never seen an answer... I am using Paid Membership Pro and want to be able to have an automatic email go out if a user has not logged in for X number of days ...
3
votes
3answers
3k views

Wp_Schedule_Event every day at specific time

I write Following code to run my function every day at 16:20 .. But I guess is the problem in code.. not working Epoch timestamp: 1427488800 3/28/2015 1:10:00 AM if( !wp_next_scheduled( '...
14
votes
3answers
14k views

How to debug WordPress “Cron” wp_schedule_event

How can I debug problems with WordPress Cron? I think it will trigger when users go to your site but any errors wont be shown to them, as the jobs are run "asynchronously". So how might I debug errors?...
2
votes
1answer
63 views

Can't access wp_filesystem in cron function

I'm writing a plugin for integrating WP with Visma. It will basically spit out an XML file every third hour using wp cron (going to setup server cron for wp-cron.php on the live site) and save it to ...
0
votes
1answer
619 views

Need to execute a cron job

I need a cron job to execute the following url http://www.mywebsite.com/wp-admin/admin.php?page=myvideoblog/mvb_main.php&action=processfeed&updatefeed=67 The problem is that it requires ...
1
vote
0answers
70 views

wp cron job fires at every second or so, if callback is wrapped with DOING_CRON check it never fires at all

I am a bit lost while dealing with a open source plugin implementing wp cron. You can read about the problem on github https://github.com/nekojira/wp-currencies/issues/6#issuecomment-116735909 - I ...
2
votes
1answer
171 views

Schedule WordPress Auto-Updates to only run during business hours

We've turned on WordPress Auto-Updates (yey!), but, just in case this does break anything, we'd like to only run Auto-Updates during daylight hours (e.g. 09:00 - 17:30). We have the "on init" WP-Cron ...
1
vote
0answers
56 views

Set post to unpublished after one week depending on condition

I have a post type with a custom field checkbox. If this checkbox is checked and the post is published, I want to unpublish when one week has passed since last modified date. How would I go about ...
0
votes
1answer
792 views

Do WordPress cron jobs slow down page loading?

If a user visits a site and his visit triggers a cron job that is quite intensive, the page load speed will be slower for him right? As I understand the page doesn't wait for the cron job to execute ...
5
votes
3answers
1k views

How do I log plugin (cron) actions?

Is there a recommended way to log (failed) cron actions from your plugin? For example, I have a plugin that synchronizes with an external service every hour. I want to log how much was changed, but ...
1
vote
1answer
86 views

WP cron doesn't pass through my arguments

I've been trying to import some posts trough a cron action. The problem is my last step. Everything is going well, except for the execution of the cron. It is only passing trough the first argument. ...
0
votes
1answer
179 views

pingbacks testing

I have a few questions regarding functionality testing of PBs in a new wp installation (3.0.4): Are pingbacks sent immediately when a post is published, or are they scheduled as a cron job? If the ...
0
votes
1answer
450 views

wp_schedule_event action not running

It seems like all the answers on here for this question end up being a syntax error, however I'm not seeing it here. I'm trying to setup a daily job here that will run through all my 'vacation' ...
1
vote
2answers
494 views

Web Scraping with Cron

I'm currently scraping prices from three websites using xPath, but since it updates on every page load, it makes loading slow. What I would like to do is store that data and only update it weekly. So: ...
0
votes
0answers
84 views

Wordpress Multisite Cron Issue

I'm having some very weird cron issues. I was looking to run cron on a multisite subfolder install. And I user Debug Bar Cron plugin to see my cron jobs. I can see that the cron jobs are running fine ...
1
vote
1answer
185 views

Schedule cron don't work

I try to set up a cronjob. It seems like it run the le_schedule function but not the le_do_this function. I also tried some cronjob plugins, some says it runs and some says it fails. In this case it ...
1
vote
0answers
58 views

Store partial database to an archive database time to time

As the community knows me that I'm not a PHP Developer by core, but trying to be one. With the company I'm working, I developed many WordPress powered News Portals, where- They publish at least 30 - ...