WP Crontrol

Beschreibung

WP Crontrol enables you to take control of the scheduled cron events on your WordPress website or WooCommerce store. From the admin screens you can:

  • View all scheduled cron events along with their arguments, schedule, callback functions, and when they are next due.
  • Edit, delete, pause, resume, and immediately run cron events.
  • Neue Cron-Ereignisse hinzufügen.
  • Cron-Ereignisse per Massenverarbeitung löschen.
  • Füge individuelle Cron-Zeitpläne hinzu und entferne sie.
  • Export and download cron event lists as a CSV file.

WP Crontrol is aware of timezones, will alert you to events that have no actions or that have missed their schedule, and will show you a helpful warning message if it detects any problems with your cron system.

Nutzung

  1. Gehe zum Menü Werkzeuge Cron-Ereignisse, um Cron-Ereignisse zu verwalten.
  2. Gehe zum Menü Einstellungen Cron-Zeitpläne, um Cron-Zeitpläne zu verwalten.

Documentation

Extensive documentation on how to use WP Crontrol and how to get help for error messages that it shows is available on the WP Crontrol website.

For site owners

WP Crontrol is an essential tool for owners of WordPress websites and WooCommerce stores to ensure that scheduled cron events run correctly and efficiently. By providing complete control over cron events, WP Crontrol helps you:

  • Improve reliability: Quickly address missed or failed cron events, ensuring your website or WooCommerce store continues to function as expected.
  • Enhance security: Monitor and control cron events to ensure automatic update checks are performed as they should.
  • Simplify management: Add, edit, delete, and pause cron events from a user-friendly interface, without needing to write any code.
  • Gain insights: Export cron event data for analysis or reporting.
  • Action Scheduler compatibility: Full support for the Action Scheduler system in WooCommerce, which is used to process recurring payments, subscriptions, and background orders.
  • Clarity of times and timezones: All times are shown with a clear and accurate indication of which timezone applies. No more guesswork!

For developers

WP Crontrol is an invaluable tool for developers to streamline and debug their WordPress development process:

  • Enhanced debugging: Easily identify and troubleshoot issues with scheduled tasks, ensuring your scheduled events and their callbacks run as expected.
  • Custom schedules: Create and manage custom cron schedules to fit the specific needs of your website, plugins, or themes, providing greater flexibility than just the core schedules.
  • Efficient workflow: Quickly add, edit, and delete cron events directly from the WordPress admin interface, saving time and reducing the need for manual coding.
  • Insightful monitoring: Gain insights into the performance and behavior of your scheduled tasks, allowing for better optimization and resource management.
  • Accurate debugging: WP Crontrol goes to great lengths to ensure that running an event manually does so in a manner which exactly matches how WordPress core runs schdeuled events. This ensures that you can debug events accurately and with confidence.

Andere Plugins

I maintain several other plugins for developers. Check them out:

  • Query Monitor is the developer tools panel for WordPress.
  • User Switching provides instant switching between user accounts in WordPress.

Privacy Statement

WP Crontrol is private by default and always will be. It does not send data to any third party, nor does it include any third party resources. WP Crontrol’s full privacy statement can be found here.

Accessibility Statement

WP Crontrol aims to be fully accessible to all of its users. WP Crontrol’s full accessibility statement can be found here.

Screenshots

  • Cron events can be modified, deleted, and executed
  • New cron events can be added
  • New cron schedules can be added, giving plugin developers more options when scheduling events

FAQ

Funktioniert dieses Plugin mit PHP 8?

Yes, it’s actively tested and working up to PHP 8.4.

I get the error „There was a problem spawning a call to the WP-Cron system on your site“. How do I fix this?

You can read all about problems spawning WP-Cron on the WP Crontrol website.

Why do some cron events miss their schedule?

You can read all about cron events that miss their schedule on the WP Crontrol website.

Why do some cron events reappear shortly after I delete them?

If the event is added by a plugin then the plugin most likely rescheduled the event as soon as it saw that the event was missing. To get around this you can instead use the „Pause this hook“ action which means it’ll remain in place but won’t perform any action when it runs.

Is it safe to delete cron events?

This depends entirely on the event. You can use your favourite search engine to search for the event name in order to find out which plugin it belongs to, and then decide whether or not to delete it.

If the event shows „None“ as its action then it’s usually safe to delete. Please see the other FAQs for more information about events with no action.

Why can’t I delete some cron events?

The WordPress core software uses cron events for some of its functionality and removing these events is not possible because WordPress would immediately reschedule them if you did delete them. For this reason, WP Crontrol doesn’t let you delete these persistent events from WordPress core in the first place.

If you don’t want these events to run, you can use the „Pause this hook“ action instead.

What happens when I pause an event?

Pausing an event will disable all actions attached to the event’s hook. The event itself will remain in place and will run according to its schedule, but all actions attached to its hook will be disabled. This renders the event inoperative but keeps it scheduled so as to remain fully compatible with events which would otherwise get automatically rescheduled when they’re missing.

As pausing an event actually pauses its hook, all events that use the same hook will be paused or resumed when pausing and resuming an event. This is much more useful and reliable than pausing individual events separately.

What happens when I resume an event?

Resuming an event re-enables all actions attached to the event’s hook. All events that use the same hook will be resumed.

What does it mean when „None“ is shown for the Action of a cron event?

This means the cron event is scheduled to run at the specified time but there is no corresponding functionality that will be triggered when the event runs, therefore the event is useless.

This is often caused by plugins that don’t clean up their cron events when you deactivate them. You can use your favourite search engine to search for the event name in order to find out which plugin it belongs to, and then decide whether or not to delete it.

How do I change the next run time or the schedule of a cron event?

You can change the time and schedule of a cron event by clicking the „Edit“ link next to the event.

Wie kann ich ein Cron-Event erstellen, welches eine URL ansteuert?

From the Tools Cron Events menu, click on Add New Cron Event. Select the „URL cron event“ option, fill out the details, and press the „Add Event“ button.

You can read all about the features and security of URL cron events on the WP Crontrol website.

Warum werden Änderungen, die ich an Cron-Events mache, nicht gespeichert?

You can read all about problems with editing cron events on the WP Crontrol website.

Can I export a list of cron events?

Yes, a CSV file of the event list can be exported and downloaded via the „Export“ button on the cron event listing screen. This file can be opened in any spreadsheet application.

Kann ich ein historisches Protokoll aller Cron-Events sehen, die auf meiner Website gelaufen sind?

Not yet, but I hope to add this functionality soon.

Can I see a historical log of edits, additions, and deletions of cron events and schedules?

Yes. The excellent Simple History plugin has built-in support for logging actions performed via WP Crontrol.

Was ist der Sinn hinter dem Hinzufügen von neuen Cron-Zeitplänen?

Cron-Zeitplöne werden von WordPress und Plugins benutzt, um Ereignisse zu planen, die in normalen Intervallen ausgeführt werden. Intervalle müssen vom WordPress-Core oder von einem Plugin bereitgestellt werden, um benutzt werden zu können. Als Beispiel bieten viele Sicherungs-Plugins Unterstützung für periodische Sicherungen an. Um eine wöchentliche Sicherung zu erstellen, muss ein wöchentlicher Zeitplan zuerst in WP Crontrol hinzugefügt werden, damit ein Sicherungs-Plugin diesen Zeitplan als Intervall benutzen kann.

Wie erstelle ich ein neues Cron-Ereignis?

Es sind zwei Schritte erforderlich, um ein funktionierendes Cron-Ereignis zu erhalten, das regelmäßig ausgeführt wird. Der erste Schritt besteht darin, WordPress den Hook mitzuteilen. Das ist der Teil, für den WP Crontrol erstellt wurde. Der zweite Schritt ist, eine Funktion auszuführen, wenn dein Hook ausgeführt wird.

Step One: Adding the event

From the Tools Cron Events menu, click on Add New Cron Event. Fill out the details of the event. You’re best off using a hook name that conforms to normal PHP variable naming conventions. The schedule is how often the event will be executed. If you don’t see a good interval, then add one in the Settings Cron Schedules menu.

Schritt Zwei: Schreiben der Funktion

Dieser Teil muss in den PHP-Code (beispielsweise in der functions.php deines Themes). Um deinen Hook auszuführen, führt WordPress eine Action aus. Aus diesem Grund müssen wir WordPress sagen, welche Funktion ausgeführt werden soll, wenn diese Action läuft. Die folgende Zeile erledigt das:

add_action( 'my_hookname', 'my_function' );

Der nächste Schritt ist das Schreiben deiner Funktion. Hier gibt es ein einfaches Beispiel:

function my_function() {
    wp_mail( 'hello@example.com', 'WP Crontrol', 'WP Crontrol rocks!' );
}

Wie erstelle ich ein neues PHP-Cron-Ereignis?

From the Tools Cron Events menu, click on „Add New Cron Event“. Select the „PHP cron event“ option and enter the schedule and next run time. The event schedule is how often your event will be executed. If you don’t see a good interval, then add one in the Settings Cron Schedules menu. In the „PHP Code“ area, enter the PHP code that should be run when your cron event is executed. You don’t need to provide the PHP opening tag (<?php).

Creating, editing, and running PHP cron events is subject to restrictive security permissions. You can read all about the features and security of PHP cron events on the WP Crontrol website.

Welche Benutzer können Cron-Ereignisse und -Zeitpläne verwalten?

Nur Benutzer mit der manage_options-Berechtigung können Cron-Ereignisse und -Zeitpläne verwalten. Standardmäßig haben nur Administratoren diese Berechtigung.

Welche Benutzer können PHP-Cron-Ereignisse verwalten? Ist das gefährlich?

Nur Benutzer mit der Berechtigung edit_files können PHP-Cron-Ereignisse verwalten. Das heißt, wenn ein Benutzer keine Dateien im WordPress-Adminbereich bearbeiten darf (d. h. durch den Plugin- oder Theme-Editor), kann er auch keine PHP-Cron-Ereignisse in WP Crontrol hinzufügen, bearbeiten oder löschen. Standardmäßig haben nur Administratoren diese Berechtigung und bei aktiver Multisite haben nur Super-Administratoren diese Berechtigung.

Wenn die Dateibearbeitung über die Konfigurations-Konstanten DISALLOW_FILE_MODS oder DISALLOW_FILE_EDIT deaktiviert wurden, hat kein Benutzer die Berechtigung edit_files, wodurch das Hinzufügen, Bearbeiten oder Löschen eines PHP-Cron-Ereignisses nicht erlaubt ist.

Deshalb ändert sich die erforderliche Berechtigung mit aktiviertem WP Crontrol nicht, um beliebigen PHP-Code auszuführen.

If the CRONTROL_DISALLOW_PHP_EVENTS constant is defined and set to true, then PHP cron events will be disabled completely. Any existing PHP cron events will remain in place (and can be deleted if user permissions allow) but their PHP code will not be executed when the event runs, and no PHP cron events can be added, edited, or run.

You can read all about the features and security of PHP cron events on the WP Crontrol website.

Sind irgendwelche WP-CLI-Befehle verfügbar?

The cron commands which were previously included in WP Crontrol are now part of WP-CLI itself. See wp help cron for more info.

What happens when I deactivate the WP Crontrol plugin?

You can read all about what happens when you deactivate the plugin on the WP Crontrol website.

Wie kann ich ein Sicherheitslücke melden?

You can report security bugs through the official WP Crontrol Vulnerability Disclosure Program on Patchstack. The Patchstack team helps validate, triage, and handle any security vulnerabilities.

Who took the photo in the plugin header image?

The photo was taken by Michael Pardo and is in the public domain.

Rezensionen

19. Februar 2025
WP Crontrol is an essential tool if you want complete control over the cron jobs on your WordPress site. Since I installed it, I’ve been able to easily manage, edit, and delete scheduled tasks. The interface is clear and simple, making it easy to handle automated tasks without hassle. I love that I can view all the cron jobs in one place and even schedule new tasks directly from the control panel. Plus, the plugin allows me to run tasks immediately, which has been super helpful for testing and keeping my site in good shape. If you’re looking for an efficient and effortless way to manage cron jobs, WP Crontrol is the ideal choice. Highly recommended for all WordPress users! ———————————————————————- Spanish WP Crontrol es una herramienta indispensable si quieres tener control total sobre los cron jobs de tu sitio de WordPress. Desde que lo instalé, he podido gestionar, editar y eliminar tareas programadas con facilidad. La interfaz es clara y sencilla, lo que facilita la administración de tareas automatizadas sin complicaciones. Me encanta que puedo ver todos los cron jobs en un solo lugar y hasta programar nuevas tareas directamente desde el panel de control. Además, el plugin me permite ejecutar tareas de inmediato, lo que ha sido muy útil para realizar pruebas y mantener mi sitio en buen estado. Si buscas una manera de gestionar cron jobs de manera eficiente y sin esfuerzo, WP Crontrol es la opción ideal. ¡Altamente recomendado para todos los usuarios de WordPress!
23. November 2024
Cron is complex, mostly due to its obfuscation (which is saying a lot, as everything in IT is obfuscated), and this plug-in makes it easier than just about any feature you will find. And a huge bonus to its sleek look and its affinity to be as quiet as a church mouse as it works. Most plug-ins scream at you for days and weeks on end, this one … hardly a peep. And it just works and makes some difficult to use but very rich features available instantly. Kudos, this is a great plug-in! Whomever those 18 people are that gave it 1-star, whew-boy, I am guessing those happened in conjunction with some level 5 Karen-adjacent meltdowns and pray not to run into the likes of them.
18. September 2024
WP Crontrol is a highly useful WordPress plugin for managing and debugging cron jobs. It offers a simple interface to view, edit, and delete scheduled tasks, making it an essential tool for troubleshooting and optimizing site performance. Perfect for developers who need better control over WordPress’s cron system. Highly recommend!
Alle 156 Rezensionen lesen

Mitwirkende & Entwickler

„WP Crontrol“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„WP Crontrol“ wurde in 20 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „WP Crontrol“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.18.0 (13 January 2025)

  • Introduces support for a CRONTROL_DISALLOW_PHP_EVENTS constant to fully disable the PHP cron event functionality. Full documentation here.
  • Further improvements to how time durations and timezone information is displayed.

1.17.1 (22 November 2024)

  • Confirms support for WordPress 6.7
  • Avoids some warnings when running on PHP 8.3 and 8.4

1.17.0 (15 July 2024)

1.16.3 (19 April 2024)

  • Corrects the displayed PHP cron event name if one is provided

1.16.2 (24 March 2024)

1.16.1 (16 November 2023)

  • Confirms support for WordPress 6.4

1.16.0 (17 October 2023)

  • Allow persistent WordPress core hooks to be cleared if there’s more than one event with that hook
  • Add the number of matching events to the hook deletion link text
  • Scrap the Ajax request that checks if the current page of cron events has changed since loading
  • Make some improvements to sorting the cron event list table columns
  • Increase the minimum supported PHP version to 7.4

1.15.3 (30 June 2023)

  • Pass the $doing_wp_cron value to the cron_request filter so it matches WordPress core
  • Miscellaneous code quality improvements

1.15.2 (15 March 2023)

  • Improves the terminology around pausing and deleting hooks and events
  • Improves accessibility of the event listing table for keyboard users
  • Removes an unnecessary SQL query when fetching the list of paused events
  • Adds an FAQ about deactivating the plugin

1.15.1 (29 December 2022)

  • Confirms the plugin is compatible with PHP 8.2
  • Increases compatibility with other plugins that include very old Composer autoloader implementations

Earlier versions

For the changelog of earlier versions, refer to the releases page on GitHub.