Wordpress: How to delete post with specific content automatically

I want to delete Wordpress posts with a specific content automatically with WP-Crontrol (or maybe a better solution I don't know yet). I have added the following cron job but it doesn't do...

Creating a PHP call with a delay of up to 90 days?

I have a website set up for a client using WordPress and s2member framework. The client wants an EOT(End of Term) notice to be e-mailed out to the members when their memberships have come to an...

Wordpress wp-cron on https (SSL) site

Have anyone has an issue with wp-cron not working on SSL site? I'm using Crontrol plugin to manage and debug this issue and it doesn't seems like wp-cron is firing at all even when I manually...

wp_cron not running in my plugin

I've created a Wordpress plugin that needs to run a cron job. In the plugin I have successfully set up the cron job and the schedule and I can see it in the admin using the WP Crontrol plugin. The...

Wordpress Cron Error "SSL certificate: unable to get local issuer certificate"

I am encountering an error on my Wordpress install with the wp-cron.php not being able to be executed by Wordpress. The debugging tool "Crontrol" reports the error "SSL certificate: unable to get...

Scheduling a product stock reduction BUT wp_schedule_single_event doesn't seem to fire my function

Inside a private custom plugin for use in the WordPress/woocommerce backend, I need to schedule a product stock reduction. Using a plugin called WP Crontrol, I am able to see that my wp_cron is...

How to insert dockerised cron process in a docker-compose built LEMP stack?

I have a LEMP stack which is built by this docker-compose file: cadvisor: image: google/cadvisor:latest container_name: lemp_cadvisor ports: - "8080:8080" volumes: -...

How to detect a change in the number of posts in WordPress?

This is more a request for a code-review than a bug. The question is if this is the "right way" of writing the following function. What I would like is to run a php cron task that would check if...

WP Cron in Plugin

I've been using this WP plugin boilerplate for some time and now I have a problem that I can't seem to solve, so I would appreciate any help. In includes there's a file called...

How to set WP Cron job timestamp according to timezone?

I'm using server cron job at midnight to schedule a WP event to send updates to the customers regarding their expired products. Whatever I have written the time is converted to my UTC+5...

wp_schedule_event() in plugin not scheduling a cron event

I'm creating a WordPress plugin, when the plugin is activated I need a cron job to be scheduled to run every 5 minutes. Here's my code; // Register plugin activation hook function...

WooCommerce Missing argument 1 for WC_Subscriptions_Manager::prepare_renewal()

I'm getting this in error logs whenever a cron runs to auto renew subscriptions for my client. [Wed Nov 22 06:45:01 2017] [error] [client 204.187.12.186] FastCGI: server...

Wordpress Cron function stops halfway but runs manually?

To give a bit of background to my project first, I have a Wordpress website of which I have turned off the cron by tweaking the wp-config to: define('DISABLE_WP_CRON', true); I then set up a cron...

The "next run" in wp crontrol plug in is not working

I want to create a function which the function run in every 3 minute. I use plugin wp-crontrol to create a cron job event. I searched in Google and Stackoverflow, and the code in function.php...

Backdoor code injection in wordpress database - how to remove - better still how to fix?

Every day or so, backdoor code gets added (injected?) to the end of all the rows in wp_posts - post_content. Wordfence picks up only the entry cutwin and alerts me - it doesn't clean it. I've also...

Run a cron job set up in Wordpress from external source

I currently use WP-Crontrol plugin to create, schedule, and run a few cron jobs in a Wordpress environment. When using this, everything runs smoothly. My question is: How can I run the cron job...

Unable to run cron job in WordPress

I am trying to run a simple cron job using the plugin https://wordpress.org/plugins/wp-crontrol. I have no idea why the cron is not executing I have added the following code to...

Wordpress Cron Job is not running

I set up a Wordpress Cron Job to run every 5 minutes and execute a function called bulk_update(). When I run the function manually through the admin, it works. However, it seems the Cron job is...

WP Crontrol: There was a problem spawning a call to the WP-Cron system on your site

After upgrading my digitalocean server, Wp crontrol is throwing error "There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work....