説明
WP Crontrol で、WordPress サイトや WooCommerce ストアの cron イベントを管理しましょう。管理画面から、以下の操作が可能です:
- スケジュールされたすべての cron イベントとその引数、スケジュール、コールバック関数、および次に実行される予定の日時を表示します。
- Log each run of the events you choose, with its duration, errors, HTTP requests, and emails sent.
- Get an email when a logged event fails.
- Let an AI assistant check, run, and pause cron events and read their logs, through the WordPress Abilities API (WordPress 6.9 and later).
- Cron イベントの編集、削除、一時停止、再開、即時実行が可能。
- 新しい Cron イベントの追加。
- cron イベントの一括削除
- 任意の cron スケジュールの追加と削除
- Cron イベントリストを CSV ファイルとしてエクスポート、ダウンロードすることができます。
WP Crontrol はタイムゾーンを認識し、アクションが無かったり、スケジュールを逃したイベントを警告し、Cron システムで何らかの問題を検出した場合、役立つ警告メッセージを表示します。
使い方
- Go to the
Cron → Cron Eventsmenu to manage cron events.Tools → Cron Eventsstill works too. - Go to the
Cron → Cron Logsmenu to see what ran, once you turn on logging for an event. - Go to the
Cron → Cron Insightsmenu to see how your events behaved over the last week. - Go to the
Cron → Cron Alertsmenu to get an email when a logged event fails. - Go to the
Cron → Cron AImenu to see what an AI assistant can do with your cron events. - Go to the
Cron → Cron Schedulesmenu to manage cron schedules.
ドキュメント
WP Crontrol の使用方法と、表示されるエラーメッセージに対するヘルプの取得方法に関する詳細なドキュメントは、WP Crontrol の Web サイトで入手できます。
サイト所有者の方へ
WordPress ウェブサイトや WooCommerce ストアの所有者は、スケジュールされた cron イベントが正しく効率的に実行されるように、WP Crontrol を使用できます。cron イベントを完全に制御できる WP Crontrol は、次のようなメリットをもたらします。
- 信頼性の向上: cron イベントの未実行や失敗を解決し、ウェブサイトや WooCommerce ストアが正常に機能し続けるようにします。
- セキュリティの強化: cronイベントを監視し制御することで、自動更新チェックが適切に実行されるようにします。
- 管理を簡素化: ユーザーフレンドリーなインターフェースから、コードを書く必要なく、cron イベントの追加、編集、削除、一時停止が可能です。
- 見易く深い分析: 分析やレポート作成のために、cron イベントデータをエクスポートできます。
- アクションスケジューラーの互換性: WooCommerce のアクションスケジューラーシステムに対する完全なサポートを提供しています。このシステムは、定期支払い、サブスクリプション、およびバックグラウンド注文の処理に使用されます。
- 時刻とタイムゾーンの明確化: すべての時刻は、どのタイムゾーンが適用されるかを明確に正確に表示します。もう迷う必要はありません!
開発者の方へ
開発者は、WP Crontrol を使用して、WordPress 開発プロセスを合理化し、デバッグできます。
- 強化されたデバッグ: スケジュールされたタスクの問題を特定してトラブルシューティングし、スケジュールされたイベントとそのコールバックが期待どおりに実行されることを確認します。
- カスタムスケジュール: ウェブサイト、プラグイン、またはテーマの特定のニーズに合わせて、カスタムの cron スケジュールを作成し管理できます。これにより、コアスケジュールのみを使用する場合よりも、より高い柔軟性を実現できます。
- 効率的なワークフロー: WordPress の管理画面から直接 cron イベントの追加、編集、削除が可能で、時間を節約し、手動でのコーディングの必要性を軽減します。
- 高度な分析機能を備えた監視: スケジュールされたタスクのパフォーマンスと動作を分析し、最適化とリソース管理の向上を実現します。
- 正確なデバッグ: WP Crontrol は、イベントを手動で実行する際に、WordPress コアがスケジュールされたイベントを実行する方法と完全に一致するように細心の注意を払っています。これにより、イベントを正確かつ確実にデバッグできます。
他のプラグイン
WP Crontrol was built by John Blackbourn, who also maintains these plugins for developers:
- Query Monitor は WordPress 開発者向けのツールパネルです。
- User Switching は、WordPress のユーザーアカウントを瞬時に切り替えることができます。
More Plugins From Our Team
WP Crontrol is now looked after by the Duplicator team. If it’s useful to you, these might be too:
- WPVibe connects AI assistants like Claude and ChatGPT to your WordPress site, so they can build and manage it for you.
- Duplicator backs up, migrates, and clones WordPress sites.
- WP Mail SMTP fixes WordPress email delivery, so the emails your scheduled tasks send actually arrive.
- WPCode adds custom code snippets to WordPress safely, without editing your theme’s functions.php file.
個人情報の取り扱いについて
WP Crontrol は、デフォルトではプライベートであり、常にそうです。第三者にデータを送信したり、第三者のリソースを含むことはありません。 WP Crontrol のプライバシーに関する声明の全文は、こちらでご覧いただけます。
Cron alerts are sent by your site’s own email setup, only to the addresses you choose. When you install or activate one of our other plugins from a WP Crontrol screen, WP Crontrol notes which one in your site’s database, so you can see what came from WP Crontrol. That note stays on your site and is never sent anywhere.
アクセシビリティに関する声明
WP Crontrol は、すべてのユーザーが完全にアクセスできることを目指しています。WP Crontrol のアクセシビリティに関する声明の全文は、こちらでご覧いただけます。
法的事項
Crontrol® は、Clever Things For The Web Limited の登録商標です。
スクリーンショット
FAQ
このプラグインは、PHP 8 で動作しますか?
はい、PHP 8.4 まで積極的にテストされており、正常に動作しています。
「サイトの WP-Cron システムへの呼び出しが頻発する問題がありました。」というエラーが表示されます。どうすればいいですか?
cron イベントがスケジュールに間に合わないことがあるのはなぜですか?
cron イベントを削除しても、すぐに元に戻ることがあるのはなぜですか?
イベントがプラグインによって追加された場合、プラグインは、イベントが欠落していることを確認するとすぐにイベントを再スケジュールした可能性があります。 これを回避するには、代わりに「このフックを一時停止する」アクションを使用できます。これは、一時停止しますが、実行時にアクションを実行しないことを意味します。
cron イベントを削除しても大丈夫ですか?
これは完全にイベントに依存します。お気に入りの検索エンジンでイベント名を検索すると、そのイベントがどのプラグインに属しているかがわかりますので、その上で削除するかどうかを判断してください。
イベントのアクションが「なし」と表示されている場合は、通常は削除しても問題ありません。アクションのないイベントの詳細については、他の FAQ を参照してください。
一部の cron イベントを削除できないのはなぜですか?
WordPress コアソフトウェアは、その機能の一部に cron イベントを使用しており、これらのイベントを削除すると WordPress がすぐに再スケジュールしてしまうため、削除することはできません。このため、WP Crontrol では、WordPress コアからこれらの永続的なイベントを削除することはできません。
これらのイベントを実行したくない場合は、代わりに「このフックを一時停止」アクションを使用できます。
イベントを一時停止するとどうなりますか?
イベントを一時停止すると、イベントのフックに関連付けられているすべてのアクションが無効になります。 イベント自体はそのまま残り、スケジュールに従って実行されますが、そのフックに関連付けられたすべてのアクションは無効になります。 これにより、イベントは動作しなくなりますが、欠落している場合に自動的に再スケジュールされるイベントとの完全な互換性を維持するためにスケジュールされたままになります。
イベントを一時停止すると、実際にはそのフックが一時停止するため、イベントを一時停止して再開すると、同じフックを使用するすべてのイベントが一時停止または再開されます。 これは、個々のイベントを個別に一時停止するよりもはるかに便利で信頼性があります。
イベントを再開するとどうなりますか?
イベントを再開すると、イベントのフックに関連付けられているすべてのアクションが再び有効になります。 同じフックを使用するすべてのイベントが再開されます。
cron イベントのアクションに「なし」が表示されているのはどういう意味ですか?
これは、cron イベントが指定された時間に実行されるようにスケジュールされているが、イベントが実行されたときにトリガーされる機能がないため、イベントが役に立たないことを意味します。
cron イベントの次の実行時間やスケジュールを変更するにはどうすればいいですか ?
イベントの横にある「編集」リンクをクリックすると、cron イベントの時間やスケジュールを変更することができます。
cron イベントに変更を加えても保存されないのはなぜですか?
cron イベントのリストをエクスポートすることはできますか?
はい、cron のイベント一覧画面の「エクスポート」ボタンから、イベント一覧の CSV ファイルをエクスポート、ダウンロードできます。このファイルは任意の表計算アプリケーションで開くことができます。
自サイトで実行されたすべての cron イベントの履歴ログを見ることはできますか?
Yes. Go to
Tools → Cron Logsand turn on logging for the events you want to watch, or use the “Enable logging” link next to an event on the Cron Events screen. Logging is off by default. Each run of a logged event records its duration, errors and warnings, HTTP requests, emails sent, and database queries. Entries are kept for 30 days, up to 10,000 entries per site. Event arguments are not stored, and the query strings of logged HTTP requests are removed.The
Tools → Cron Insightsscreen shows when your events are due over the coming week and the errors from the last seven days.cron イベントやスケジュールの編集・追加・削除の履歴ログを見ることはできますか?
はい。優れた Simple History plugin には、WP Crontrol 経由で実行されたアクションのログを取るためのサポートが組み込まれています。
新しい cron スケジュールを追加しどの様に使用しますか?
Cron のスケジュールは、定期的に実行されるイベントをスケジュールするために WordPress やプラグインで使用されます。 イベントの間隔は、WordPress コアまたはプラグインによって提供され、使用される必要があります。 たとえば、多くのバックアッププラグインは定期的なバックアップをサポートしています。 毎週のバックアップを行うには、WP Crontrol に毎週の cron スケジュールを入力すると、バックアッププラグインはイベントの間隔としてそれを利用できます。
新しい cron イベントを作成するには?
定期的に実行される cron イベント機能を取得するには、2つのステップがあります。 最初のステップは、WordPressにフックについて伝えることです。 これは、WP Crontrol が提供するために作成された部分です。 2番目のステップは、フックが実行されたときに関数を呼び出すことです。
ステップ1: イベントを追加する
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 Cron Cron Schedules menu.
ステップ2: 関数の記述
この部分はPHPコードで (例えば、テーマの
functions.phpファイルで) 実行されます。フックを実行するために、WordPress はアクションを実行します。このために、このアクションが実行されたときに実行する関数を WordPress に伝える必要があります。次の行はこれを実現します:add_action( 'my_hookname', 'my_function' );次のステップは、関数を書くことです。 ここに簡単な例があります:
function my_function() { wp_mail( 'hello@example.com', 'WP Crontrol', 'WP Crontrol rocks!' ); }URL をリクエストする cron イベントを作成するにはどうすればいいですか?
ツール Cron イベント メニューから、[クロンイベントの追加] をクリックします。[URL cron イベント] オプションを選択し、詳細を入力し、[イベントの追加] ボタンを押します。
URL cron イベントの機能とセキュリティに関する詳細情報は、WP Crontrol ウェブサイトでご確認いただけます。
新しい 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 Cron 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).PHP cron イベントの作成、編集、実行には、制限されたセキュリティ権限が適用されます。 PHP cron イベントの機能とセキュリティについては、WP Crontrol ウェブサイトですべて読むことができます。
どのユーザーが PHP cron イベントとスケジュールを管理できますか ?
manage_options権限を持つユーザーだけが cron イベントとスケジュールを管理できます。デフォルトでは、管理者のみがこの機能を備えています。PHP の cron イベントを管理できるユーザーは?これは危険なのでしょうか?
edit_files権限を持つユーザーのみが PHP の cron イベントを管理することができます。これは、ユーザーが WordPress 管理エリアを介してファイルを編集できない場合(プラグインエディタやテーマエディタなど)、WP Crontrol 内で PHP の cron イベントを追加、編集、削除できないことを意味します。デフォルトでは、管理者のみがこの機能を持ち、マルチサイトを有効にすると特権管理者のみがこの権限を持つようになります。DISALLOW_FILE_MODSやDISALLOW_FILE_EDITの設定定数でファイル編集が無効になっている場合、どのユーザーもedit_filesの権限を持つことができません。すなわち PHP cron イベントの追加、編集、削除が許可されません。そのため、WP Crontrol を有効にしても、任意の PHP コードを実行するのに必要なユーザーのアクセスレベルは変わりません。
CRONTROL_DISALLOW_PHP_EVENTS定数が定義され、trueに設定されている場合、PHP cron イベントは完全に無効化されます。既存の PHP cron イベントはそのまま残ります(ユーザーの権限で削除できます)。ただし、イベント実行時にその PHP コードは実行されず、PHP cron イベントの追加、編集、実行もできなくなります。PHP cron イベントの機能とセキュリティについては、WP Crontrol ウェブサイトですべて読むことができます。
Yes. WP Crontrol adds its own Cron menu, and Tools Cron Events keeps working. To remove the Cron menu, add this to a must-use plugin or your theme’s functions.php file:
add_filter( 'crontrol/top_level_menu', '__return_false' );WP-CLI コマンドは利用できますか ?
以前に WP Crontrol に含まれていた Cron コマンドは、WP-CLI 自体の一部になりました。 詳細については、
wp help cronを参照してください。WP Crontrol プラグインを無効化するとどうなりますか?
セキュリティバグを報告するにはどうすればよいですか?
You can submit a private security vulnerability report to WP Crontrol via the Security tab on the GitHub repo. The GitHub Security Advisory process facilitates private collaboration on security issues. You’ll receive credit for a valid report and a CVE if necessary.
WordPress.org のサポートフォーラムやメールを通じて、セキュリティ上の問題を報告しないでください。よろしくお願いいたします。
プラグインのヘッダー画像の写真は誰が撮ったものですか?
この写真は、Michael Pardoが撮影したもので、パブリックドメインです。
評価
貢献者と開発者
変更履歴
2.0.0 (15 October 2026)
- Cron event logging and Cron Insights, previously part of WP Crontrol Pro, are now free for everyone. Logging is off until you turn it on for an event.
- WP Crontrol now has its own Cron menu in the admin, with Events, Logs, Insights, Alerts, AI, and Schedules in one place. Tools > Cron Events still works.
- New: Cron Alerts. Get an email when a logged cron event fails, as it happens (at most once an hour for each event) or as a daily summary, with a test button to check that alerts arrive.
- New: Cron AI. WP Crontrol registers its features with the WordPress Abilities API (WordPress 6.9 and later), so an AI assistant can list, run, and pause cron events, turn logging on, and read logs and insights, with your account’s permissions. Assistants can’t create or edit PHP or URL cron events.
- Logs now show when an email sent by a logged event failed to send.
- Dates and times in the event list can now be translated, including month names. Thanks to @zalemcitizen for the request.
- Logs never store event arguments, and logged HTTP requests keep only the site address.
- Logs are kept for 30 days, up to 10,000 entries per site. Deleting the plugin removes its log tables and settings.
- Shows a note about WP Crontrol’s new home at the top of the Cron screens until you dismiss it, with plugins from the same team that aren’t active on your site.
- Suggests Duplicator on the Cron Events screen when no backup plugin or scheduled backup is found, and WPCode under the PHP cron event code field. Each suggestion can be dismissed for good.
1.22.0 (8 October 2026)
- WP Crontrol is now maintained by the team at Awesome Motive. Thank you to John Blackbourn for building and looking after WP Crontrol for so many years. It remains free, open source, and private by default.
- Fixes Run Now reporting a failure when the event was scheduled successfully, for example when a plugin such as Cavalcade stores events outside the cron option. Props @abdulraheemalick.
- Security: Hardens several permission and integrity checks for cron events.
- Removes the sponsor link.
1.21.2 (29 August 2026)
- Confirms full support for WordPress 7.1
- Bumps the minimum supported version of WordPress to 6.6
1.21.1 (31 July 2026)
- Fixes some bulk delete behaviour
- Confirms full support for WordPress 7.0
1.21.0 (28 January 2026)
- Adds support for invalid args in cron events by relaxing the strict typing and showing a warning on the listing and editing screens.
1.20.0 (17 December 2025)
- Confirms support for WordPress 6.9
- Minor UI and UX improvements
- Some architectural changes to prepare for future enhancements
1.19.3 (23 October 2025)
- Corrects the handling of closures as cron event actions.
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)
- Confirms support for WordPress 6.8
- Further improvements to the display of dates, intervals, and timezones for increased clarity
- Adds more contextual help links for problematic events
- Various UI and UX improvements
1.18.0 (13 January 2025)
- Introduces support for a
CRONTROL_DISALLOW_PHP_EVENTSconstant 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
Earlier versions
For the changelog of earlier versions, refer to the releases page on GitHub.
