WP Crontrol

Description

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

  • View all cron events along with their arguments, schedule, callback functions, and when they are next due.
  • Edit, delete, pause, resume, and immediately run cron events.
  • Ajouter de nouveaux évènements cron.
  • Suppression en masse d’évènements cron.
  • Ajouter et retirer des planifications cron personnalisées.
  • 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.

Utilisation

  1. Allez dans le menu Outils Évènements Cron pour gérer les évènements cron.
  2. Allez dans le menu Réglages Fréquences Cron pour gérer les récurrences cron.

Autres extensions

Je maintiens plusieurs autres extensions pour les développeurs. Jetez-y un coup d’œil :

  • Query Monitor est le panneau des outils de développement pour WordPress.
  • User Switching permet de passer instantanément d’un compte à l’autre dans 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.

Captures d’écran

  • Cron events can be modified, deleted, and executed

  • New cron events can be added

  • De nouvelles planifications cron peuvent être ajoutées, offrant aux développeurs/développeuses d’extensions plus d’options lors de la planification d’évènements

    .

FAQ

L’extension fonctionne-t-elle avec PHP 8 ?

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

Je reçois l’erreur « Il y a eu un problème lors du déclenchement d’un appel au système WP-Cron sur votre site. ». Comment puis-je corriger ce problème ?

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

Pourquoi certains évènements cron manquent-ils leur planification ?

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

Pourquoi certains évènements cron réapparaissent-ils peu après leur suppression ?

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.

Est-il possible de supprimer les évènements cron en toute sécurité ?

Cela dépend entièrement de l’évènement. Vous pouvez utiliser votre moteur de recherche préféré pour rechercher le nom de l’évènement afin de trouver à quelle extension il appartient, et décider ensuite de le supprimer ou non.

Si l’évènement affiche « Aucune » comme action, il est généralement sans risque de le supprimer. Veuillez consulter les autres FAQ pour plus d’informations sur les évènements sans action.

Pourquoi ne puis-je pas supprimer certains évènements cron ?

Le cœur WordPress utilise des évènements cron pour certaines de ses fonctionnalités. La suppression de ces évènements n’est pas possible, car WordPress les re-planifierait immédiatement si vous les supprimiez. Pour cette raison, WP Crontrol ne vous permet pas de supprimer ces évènements persistants du cœur de WordPress.

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.

Que signifie « Aucune » pour l’action d’un évènement cron ?

Cela signifie que l’évènement cron est programmé pour s’exécuter à l’heure spécifiée, mais qu’aucune fonction ne sera déclenchée lorsque l’évènement s’exécutera, ce qui rend l’évènement inutile.

Ce problème est souvent causé par des extensions qui ne nettoient pas leurs évènements cron lorsqu’ils sont désactivés. Vous pouvez utiliser votre moteur de recherche préféré pour rechercher le nom de l’évènement afin de savoir à quelle extension il appartient, et décider ensuite de le supprimer ou non.

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.

Comment puis-je créer un évènement cron qui sollicite une URL ?

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.

Pourquoi les modifications que j’apporte à certains évènements cron ne sont-ils pas enregistrées ?

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

Puis-je exporter une liste d’évènements cron ?

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.

Puis-je voir le journal des évènements cron qui ont été exécutés sur mon site ?

Pas encore, mais j’espère ajouter cette fonctionnalité bientôt.

Puis-je voir le journal des modifications, ajouts et suppressions d’évènements et planifications cron ?

Oui. L’excellente extension Simple History dispose d’un support intégré pour la journalisation des actions effectuées via WP Crontrol.

À quoi sert d’ajouter de nouvelles fréquences cron ?

Les fréquences Cron sont utilisés par WordPress et les extensions pour planifier des évènements à exécuter à intervalles réguliers. Les intervalles doivent être fournis par le cœur de WordPress ou par une extension pour pouvoir être utilisées. Par exemple, de nombreuses extensions de sauvegarde prennent en charge les sauvegardes récurrentes. Pour effectuer une sauvegarde hebdomadaire, une fréquence cron hebdomadaire doit d’abord être saisie dans WP Crontrol, une extension de sauvegarde peut alors l’utiliser comme fréquence d’exécution.

Comment créer un nouvel évènement cron ?

Il y a deux étapes pour obtenir un évènement cron fonctionnel qui s’exécute régulièrement. La première étape consiste à informer WordPress de l’existence du crochet. C’est l’élément que WP Crontrol a créé pour le déclenchement. La deuxième étape consiste à appeler une fonction lorsque votre crochet est exécuté.

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.

Deuxième étape : écrire la fonction

Cette partie se déroule dans le code PHP (par exemple, dans le fichier functions.php de votre thème). Pour exécuter votre crochet, WordPress exécute une action. C’est pourquoi, nous devons indiquer à WordPress quelle fonction doit être exécutée lorsque cette action est exécutée. La ligne suivante accomplit cela :

add_action( 'my_hookname', 'my_function' );

L’étape suivante consiste à écrire la fonction. Voici un exemple simple :

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

Comment créer un nouvel évènement cron PHP ?

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.

Quels comptes peuvent gérer les évènements et les planifications cron ?

Uniquement les comptes disposant de la capacité manage_options peuvent gérer les évènements et les fréquences Cron. Par défaut, uniquement les administrateurs/administratrices disposent de cette capacité.

Quels comptes peuvent gérer les évènements cron de PHP ? Est-ce dangereux ?

Only users with the edit_files capability can manage PHP cron events. This means if a user cannot edit files via the WordPress admin area (i.e. through the Plugin Editor or Theme Editor) then they also cannot add, edit, or delete a PHP cron event in WP Crontrol. By default only Administrators have this capability, and with Multisite enabled only Super Admins have this capability.

If file editing has been disabled via the DISALLOW_FILE_MODS or DISALLOW_FILE_EDIT configuration constants then no user will have the edit_files capability, which means adding, editing, or deleting a PHP cron event will not be permitted.

Par conséquent, le niveau d’accès du compte requis pour exécuter un code PHP arbitraire ne change pas avec WP Crontrol activé.

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

Des commandes WP-CLI sont-elles disponibles ?

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.

How can I report a security bug?

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.

Qui a pris la photo de l’image d’en-tête de l’extension ?

La photo a été prise par Michael Pardo. Elle est dans le domaine public.

Avis

15 juillet 2024
I’ve used this plugin personally and recommended it professionally. Hands down, this is the most useful tool for fixing stuck cron jobs, identifying problems, etc. Thanks John for providing a such a great free plugin. You’re amazing. :)Much <3 and respect, Mia
9 mars 2024
Use this tool to run my own php script to maintain my uploaded webcam images. Thanks a lot for this plugin.
9 mars 2024
Why people are heartless and rate something so good and yet free be given poor rating? These guys have no respect for the opensource and the people who dedicate their time for the great cause. I love your plugin and i can’t say enough that its worth 5 stars rating and nothing less. This is the 4th review that i am writing for plugins which are great but some idiots give them poor rating. God bless you guys for sparing your valuable time for those who believe in the Open-source and its spirit of unity from across the world breaking all the barriers. Cheers.
20 novembre 2023
Thank you a lot, helped me understanding how WP-Cron works. Thanks! 😄
Lire les 149 avis

Contributeurs/contributrices & développeurs/développeuses

« WP Crontrol » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“WP Crontrol” a été traduit dans 18 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « WP Crontrol » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

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

1.15.0 (29 November 2022)

  • Introduces the ability to pause and resume cron events from the event listing screen; see the FAQ for full details
  • Adds the site time to the cron event editing screen
  • Implements an autoloader to reduce memory usage
  • Bumps the minimum supported version of PHP to 5.6

1.14.0 (10 July 2022)

  • Reverts the changes introduced in version 1.13 while I look into the problem with the deployment process for wordpress.org

1.13.2 (10 July 2022)

  • Fixes another issue with missing files in the release

1.13.1 (10 July 2022)

  • Fixes an issue with missing files in the 1.13.0 release

1.13.0 (10 July 2022)

  • Introduces the ability to pause and resume cron events from the event listing screen; see the FAQ for full details
  • Implements an autoloader to reduce memory usage
  • Bumps the minimum supported version of PHP to 5.6

1.12.1 (15 April 2022)

  • Corrects an issue where an invalid hook callback isn’t always identified
  • Various code quality improvements

1.12.0 (22 November 2021)

  • Fix the PHP cron event management.
  • More « namespacing » of query variables to avoid conflicts with other cron management plugins.

Earlier versions

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