The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
6 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, ...
0
votes
1answer
52 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
41 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
12 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', ...
1
vote
0answers
24 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__', ...
0
votes
2answers
31 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 ...
0
votes
1answer
51 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
26 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 ...
0
votes
1answer
69 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
23 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 ...
3
votes
1answer
83 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 ...
1
vote
0answers
49 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 ...
0
votes
0answers
66 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
86 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
33 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
104 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
1answer
71 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: ...
0
votes
2answers
67 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'); ...
2
votes
1answer
43 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 ...
1
vote
0answers
58 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
147 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
40 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 ...
1
vote
1answer
84 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
317 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' ...
2
votes
3answers
2k 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( ...
0
votes
0answers
158 views

one database, same content, two wordpress sites, different structure? or another solution to have 2 websites with the same content?

I have a WordPress site that shows posts that it gets from rss using a plugin. I want to split the "jobs" in 2 different websites because in this configuration is not working properly (high amount of ...
0
votes
0answers
72 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 ...
4
votes
3answers
3k 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 ...
1
vote
1answer
162 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
2answers
380 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: ...
1
vote
0answers
44 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 - ...
0
votes
1answer
71 views

Best place to keep files that are called by cron jobs?

I am interesting in setting up a Wordpress Website which needs to keep updating certain custom database tables after fetching data from RESTful Web Services, lets say once in a day. I can achieve ...
0
votes
2answers
65 views

wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file

I made a plugin and trying to install on wordpress.org but Wordpress is giving me error message that ## Calling core loading files directly is incorrect. I am using a cron file in my plugin.This cron ...
0
votes
1answer
69 views

does wordpress auto update work without a cron job?

I'm a bit on a loss here. Since WP 3.7 you can update your wordpress automatically. Since then it's more hit and miss on several servers here. I would like to understand, if it is enough to enable ...
1
vote
1answer
353 views

Script or plugin to send activation email automatically again after 2 hours

I'd like to set a cron job on my server to run an automated script that would tell Wordpress to: Check the users that have signed-up but not logged-in in the last 2 hours. Resend the welcome email ...
0
votes
0answers
159 views

Cron Job to Delete over 30 days old post from post type

This is my first time creating a WP cron job and I would like to have someone else review it for mistakes. I wrote this cron job to delete temporary wishlists that are over 30 days old. The wishlists ...
0
votes
3answers
104 views

setting up a wp cron job

I am a bit new to wp-cron job. I think i understand the concept but lack the implementation. i read a lot of tutorials on how to implement including this post: Run function at specific time but still ...
0
votes
0answers
29 views

XML Imported Custom Posts

I have an xml feed populating a custom post type. I need the custom post type to add the first imported image as the featured image. I have come across the following function and adapted it: ...
0
votes
1answer
117 views

Display a random tag but using cron to control frequency of change

Background - I have created a shortcode in functions.php which adds a single random tag with it's link and description to a widget in my sidebar. This is my existing code... function ...
0
votes
0answers
62 views

Scheduled event occurring each page load, but supposed to happen daily

I have a scheduled event that is supposed to occur only once a day at 12am. However, for some reason my scheduled event is happening on each page load and I can't figure out why. The default ...
1
vote
1answer
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: ...
1
vote
0answers
907 views

Problem with W3 Total Cache Interfering with Cron Jobs [closed]

I'm having an issue on a site where I schedule posts and they all miss their schedule every time and end up having to be manually published later in the day. I have WP cron disabled ...
1
vote
1answer
216 views

How to Better Control WordPress Cron Jobs?

I have a bunch of standalone WordPress sites, and WordPress Multisite Network of Sites on my server. There are times where there are too many sites all running cron jobs too soon in proximity. I am ...
0
votes
2answers
40 views

Pages for Cron use Only?

so I've got a bunch of custom page templates that are scripts that are meant to be run by cron to update various things on my wordpress site, there are not meant to be viewed by regular site users. ...
-3
votes
2answers
88 views

Is it possible to load plugin from console with core ?

I developing some scrapping plugin for my own purpose. So each 10 minutes i need to start my plugin from the cron. Plugin will parse some posts from other pages and add it to wp. So is it possible to ...
0
votes
1answer
446 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 ...
1
vote
1answer
610 views

When to use wp_schedule_single_event for async / non-blocking processes?

I have noticed this pattern in some plugins lately: <?php function MY_CRON(){ wp_schedule_single_event(time(), 'MY_ACTION'); } add_action('save_post', 'MY_CRON'); function MY_FUNCTION(){ // ...
1
vote
2answers
111 views

Template Tag not available in real Cron Jobs

I have very simple file with one line: echo file_get_contents( get_template_directory_uri().'/scheduler.php' ); This file is called by cpanel cron using php -q. When I put full link without ...
0
votes
1answer
213 views

What is the use of wp_schedule_event hook?

I want to do a cron(executes function at specific time, like email,db backup etc) job. I searched in wordpress, i got this wp_schedule_event Here they say it will execute job when someone visits ...
1
vote
1answer
100 views

After plugin options changed hook

i am looking for a hook that fires after the options for my plugin have changed. I have an option named "interval", it basically registers a cron schedule. Now, id like the change to take effect, ...