WP Crontrol

Описание

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.
  • Добавьте новые cron события.
  • Массовое удаление cron событий.
  • Добавление и удаление пользовательских cron расписаний.
  • Экспорт и загрузка списков cron событий в виде CSV файла.

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.

Использование

  1. Для управления cron событиями перейдите в меню Инструменты Cron события.
  2. Для управления cron расписаниями перейдите в меню Настройки Cron расписания.

Документация

Подробная документация по использованию WP Crontrol и получение помощи при появлении сообщений об ошибках доступны на сайте WP Crontrol.

Для владельцев сайтов

Владельцы WordPress сайтов и магазинов WooCommerce используют WP Crontrol для обеспечения правильного и эффективного выполнения запланированных cron событий. Обеспечивая полный контроль над cron событиями, WP Crontrol помогает вам:

  • Improve reliability: 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!

Для разработчиков

Разработчики используют WP Crontrol для оптимизации и отладки процесса разработки WordPress:

  • Enhanced debugging: 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: Add, edit, and delete cron events directly from the WordPress admin interface, saving time and reducing the need for manual coding.
  • Insightful monitoring: Get insight into the performance and behavior of your scheduled tasks, allowing for optimization and better 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.

Другие плагины

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.

Положение о конфиденциальности

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.

Положение о доступности

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

Скриншоты

  • Cron события можно изменять, удалять и выполнять
  • Можно добавлять новые cron события
  • New cron schedules can be added, giving plugin developers more options when scheduling events

Часто задаваемые вопросы

Это плагин работает с PHP 8?

Да, он активно тестируется и работает вплоть до 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.

Почему некоторые cron события не выполняются в соответствии с расписанием?

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.

Безопасно ли удалять cron события?

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.

Почему я не могу удалить некоторые cron события?

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.

Что происходит, когда я приостанавливаю событие?

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.

Что происходит, когда я возобновляю событие?

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.

Вы можете ознакомиться со всеми событиями без действий на сайте WP Crontrol.

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.

Why do changes that I make to some cron events not get saved?

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

Можно ли экспортировать список 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.

Can I see a historical log of all the cron events that ran on my site?

Пока нет, но я надеюсь добавить эту функцию в ближайшее время.

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.

Зачем добавлять новые cron расписания?

Cron schedules are used by WordPress and plugins for scheduling events to be executed at regular intervals. Intervals must be provided by the WordPress core or a plugin in order to be used. As an example, many backup plugins provide support for periodic backups. In order to do a weekly backup, a weekly cron schedule must be entered into WP Crontrol first and then a backup plugin can take advantage of it as an interval.

Как создать новое cron событие?

There are two steps to getting a functioning cron event that executes regularly. The first step is telling WordPress about the hook. This is the part that WP Crontrol was created to provide. The second step is calling a function when your hook is executed.

Шаг первый: Добавление события

From the Tools Cron Events menu, click on Add 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.

Шаг второй: Написание функции

This part takes place in PHP code (for example, in the functions.php file from your theme). To execute your hook, WordPress runs an action. For this reason, we need to tell WordPress which function to execute when this action is run. The following line accomplishes that:

add_action( 'my_hookname', 'my_function' );

The next step is to write your function. Here’s a simple example:

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

Как создать cron событие, которое запрашивает URL?

From the Tools Cron Events menu, click on Add 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.

Как создать новое PHP cron событие?

From the Tools Cron Events menu, click on Add 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.

Какие пользователи могут управлять событиями и расписаниями cron?

Only users with the manage_options capability can manage cron events and schedules. By default, only Administrators have this capability.

Какие пользователи могут управлять PHP cron событиями? Является ли это потенциально опасным?

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.

Therefore, the user access level required to execute arbitrary PHP code does not change with WP Crontrol activated.

Если константа CRONTROL_DISALLOW_PHP_EVENTS определена и установлена в значение true, то PHP cron события будут полностью отключены. Все существующие PHP cron события сохранятся (и могут быть удалены, если это разрешено правами пользователя), но их PHP код не будет выполняться при запуске события, и никакие PHP cron события не смогут быть добавлены, отредактированы или запущены.

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

Доступны ли какие-нибудь команды WP-CLI?

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

Что произойдет когда я отключу плагин WP Crontrol?

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

Как я могу сообщить об ошибке безопасности?

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.

Кто сделал фотографию, представленную в шапке плагина?

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

Отзывы

04.12.2025
during last summer, I was having an almost impossible problem of my tables that would Stop rendering after around 24 hours, initially I thought it was a Cloudflare issue , so I spent weeks excluding rules from caching. It was not until I installed WPCron did it learn that Elementor was running one particular Cron job that were completely unrelated to any of the material or topic which was breaking the rendering of the tables . I literally worked on addressing this bug on and off for several months . it was eye opening to see the number of Cron jobs that WordPress plugins run . And for a a free plugin , I think it is a must have tool to have , I would even consider making it part of core. Thank You . 😊
22.04.2025
This plugin is obviously written by a very thoughtful and competent author. It just works, unobtrusive and very easy UI. And the associated website gives invaluable information on various situations which one may encounter. Worth six stars! THANKS John.
Посмотреть 161 отзыв

Участники и разработчики

«WP Crontrol» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«WP Crontrol» переведён на 24 языка. Благодарим переводчиков за их работу.

Перевести «WP Crontrol» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.20.0 (17 December 2025)

  • Подтверждает поддержку WordPress 6.9
  • Незначительные улучшения UI и UX
  • Some architectural changes to prepare for future enhancements

1.19.3 (23 October 2025)

  • Исправляет обработку замыканий в качестве действий cron событий.

1.19.2 (19 August 2025)

  • Security: Hardens the «URL cron event» functionality by rejecting disallowed URLs. More information see the security advisory.
  • Tweaks the display of some non-persistent WordPress core hooks when Multisite is enabled.

1.19.1 (3 June 2025)

  • Reinstates the ability to edit the Action Scheduler event.

1.19.0 (23 April 2025)

  • Подтверждает поддержку WordPress 6.8
  • Further improvements to the display of dates, intervals, and timezones for increased clarity
  • Добавлены дополнительные контекстные ссылки на справку для проблемных событий
  • Различные улучшения UI и UX

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)

  • Подтверждает поддержку WordPress 6.7
  • Предотвращает появление некоторых предупреждений при работе на PHP 8.3 и 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)

Earlier versions

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