Question
I have a "real" cron job that executes wp-cron.php every now or then. I collect the link in to a variable by $link = get_edit_post_link(ID); It works flawlessly if I am logged in and execute cron manually with wp-cron.php but ... 0 20 hours 0 Answers 2 views ## How do I email a new page password to somebody every month? Question I want to email the new page password to somebody every month. I see no reason why this cannot be adapted. First I guess I need to change this: add_filter( 'cron_schedules', function($schedules ) { // Our custom ...
0
3 days 0 Answers 6 views

## WordPress: Cron locking and Queue

Question
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 have a crontab setup to hit ...
0
2 weeks 0 Answers 11 views

## Real cron killed my cron system. Only define( ‘ALTERNATE_WP_CRON’, true ); works

Question
my host recommended me to disable wp cron for a real cron due to excessive executions. the cron system broken immediately and scheduled tasks were not happening. deleting real cron and turning on wp cron did not work. through random luck, i ...
0
3 weeks 0 Answers 12 views

## Update all posts in custom post types with wp_cron()?

Question
I have made a function to apply a taxonomy term to post, if it has a post meta value set to true. This works as should. The problem I am facing is that it only updates after I have manually ...
0
3 weeks 0 Answers 18 views

## Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?

Question
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 this does not seem to be true for scheduled posts. I ...
0
4 weeks 0 Answers 21 views

## Why is wp-cron only executing on page visit?

Question
As I have understood wp-cron runs after a HTTP-Request to the given domain. Can someone explain to me why this is the case? I don't quite understand why the execution of (scheduled) wp-cron events are dependent on users visiting the ...
0
4 weeks 0 Answers 20 views

## change time interval of scheduled woocommerce cron job

Question
Since woocommerce version 3.4 it is possible to anonymize order data either manually or via a scheduled interval (Days / Weeks / Months / Years). Now I would like to customize the interval to twice daily. I am using the wp-crontrol ...
0
4 weeks 0 Answers 22 views

## wp_schedule_single_event does not call my action

Question
I have created the following action: add_action( 'test_action', 'test_action' ); function test_action() { error_log( 'test_action' ); } And am calling it like this: error_log( 'send_test_email_in_background:START' ); wp_schedule_single_event( time(), 'test_action' ); error_log( 'send_test_email_in_background:END' ); What I receive in the apache error log file is this: [17-Sep-2015 11:09:35 ...
0
1 month 0 Answers 48 views

## Auto Draft Specific Categories Posts after a certain number of Days

Question
I want to put posts from two categories to automatically draft after the number of days like 90 Days from the date of Publish and I created a function with the help of some codes in other forums, but its ...
0
2 months 0 Answers 42 views