WP Crontrol

説明

WP Crontrol を使用すると、WordPress ウェブサイト上の cron イベントを制御できます。 管理画面からは次のことができます。

  • View all cron events along with their arguments, schedule, callback functions, and when they are next due.
  • Cron イベントの編集、削除、一時停止、再開、即時実行が可能。
  • 新しい Cron イベントの追加。
  • cron イベントの一括削除
  • 任意の cron スケジュールの追加と削除
  • Cron イベントリストを CSV ファイルとしてエクスポート、ダウンロードすることができます。

WP Crontrol はタイムゾーンを認識し、アクションが無かったり、スケジュールを逃したイベントを警告し、Cron システムで何らかの問題を検出した場合、役立つ警告メッセージを表示します。

使い方

  1. Cron イベントを管理するには、ツール -> Cron イベントメニューに移動します。
  2. cron スケジュールを管理するには、設定 -> Cron スケジュールメニューに移動します。

他のプラグイン

他にも開発者向けのプラグインをいくつか管理しています。ぜひご覧ください。

  • Query Monitor は WordPress 開発者向けのツールパネルです。
  • User Switching は、WordPress のユーザーアカウントを瞬時に切り替えることができます。

個人情報の取り扱いについて

WP Crontrol は、デフォルトではプライベートであり、常にそうです。第三者にデータを送信したり、第三者のリソースを含むことはありません。 WP Crontrol のプライバシーに関する声明の全文は、こちらでご覧いただけます。

アクセシビリティに関する声明

WP Crontrol は、すべてのユーザーが完全にアクセスできることを目指しています。WP Crontrol のアクセシビリティに関する声明の全文は、こちらでご覧いただけます。

スクリーンショット

  • Cron イベントの修正、削除、実行が可能

  • 新しい cron イベントの追加が可能

  • 新しい cron スケジュールを追加して、プラグイン開発者にイベントをスケジュールするときのオプションを与えることができます。

FAQ

このプラグインは、PHP 8 で動作しますか?

はい、積極的にテストされ、PHP 8.3 まで動作しています。

「サイトの WP-Cron システムへの呼び出しが頻発する問題がありました。」というエラーが表示されます。どうすればいいですか?

WP-Cron の生成に関する問題については、WP Crontrol ウェブサイトですべて読むことができます

cron イベントがスケジュールに間に合わないことがあるのはなぜですか?

スケジュールを逃した cron イベントについては、WP Crontrol ウェブサイトですべて読むことができます

cron イベントを削除しても、すぐに元に戻ることがあるのはなぜですか?

イベントがプラグインによって追加された場合、プラグインは、イベントが欠落していることを確認するとすぐにイベントを再スケジュールした可能性があります。 これを回避するには、代わりに「このフックを一時停止する」アクションを使用できます。これは、一時停止しますが、実行時にアクションを実行しないことを意味します。

cron イベントを削除しても大丈夫ですか?

これは完全にイベントに依存します。お気に入りの検索エンジンでイベント名を検索すると、そのイベントがどのプラグインに属しているかがわかりますので、その上で削除するかどうかを判断してください。

イベントのアクションが「なし」と表示されている場合は、通常は削除しても問題ありません。アクションのないイベントの詳細については、他の FAQ を参照してください。

一部の cron イベントを削除できないのはなぜですか?

WordPress コアソフトウェアは、その機能の一部に cron イベントを使用しており、これらのイベントを削除すると WordPress がすぐに再スケジュールしてしまうため、削除することはできません。このため、WP Crontrol では、WordPress コアからこれらの永続的なイベントを削除することはできません。

これらのイベントを実行したくない場合は、代わりに「このフックを一時停止」アクションを使用できます。

イベントを一時停止するとどうなりますか?

イベントを一時停止すると、イベントのフックに関連付けられているすべてのアクションが無効になります。 イベント自体はそのまま残り、スケジュールに従って実行されますが、そのフックに関連付けられたすべてのアクションは無効になります。 これにより、イベントは動作しなくなりますが、欠落している場合に自��的に再スケジュールされるイベントとの完全な互換性を維持するためにスケジュールされたままになります。

イベントを一時停止すると、実際にはそのフックが一時停止するため、イベントを一時停止して再開すると、同じフックを使用するすべてのイベントが一時停止または再開されます。 これは、個々のイベントを個別に一時停止するよりもはるかに便利で信頼性があります。

イベントを再開するとどうなりますか?

イベントを再開すると、イベントのフックに関連付けられているすべてのアクションが再び有効になります。 同じフックを使用するすべてのイベントが再開されます。

cron イベントのアクションに「なし」が表示されているのはどういう意味ですか?

これは、cron イベントが指定された時間に実行されるようにスケジュールされているが、イベントが実行されたときにトリガーされる機能がないため、イベントが役に立たないことを意味します。

これは、プラグインを無効にしたときに、その cron イベントをクリーンアップしないプラグインが原因であることが多いです。お気に入りの検索エンジンを使ってイベント名を検索すると、どのプラグインに属しているかがわかりますので、その上で削除するかどうかを決めてください。

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.

URL をリクエストする cron イベントを作成するにはどうすればいいですか?

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.

cron イベントに変更を加えても保存されないのはなぜですか?

cron イベントの編集に関する問題については、WP Crontrol ウェブサイトですべて読むことができます

cron イベントのリストをエクスポートすることはできますか?

はい、cron のイベント一覧画面の「エクスポート」ボタンから、イベント一覧の CSV ファイルをエクスポート、ダウンロードできます。このファイルは任意の表計算アプリケーションで開くことができます。

自サイトで実行されたすべての cron イベントの履歴ログを見ることはできますか?

まだですが、近いうちにこの機能を追加したいと考えています。

cron イベントやスケジュールの編集・追加・削除の履歴ログを見ることはできますか?

はい。優れた Simple History plugin には、WP Crontrol 経由で実行されたアクションのログを取るためのサポートが組み込まれています。

新しい cron スケジュールを追加しどの様に使用しますか?

Cron のスケジュールは、定期的に実行されるイベントをスケジュールするために WordPress やプラグインで使用されます。 イベントの間隔は、WordPress コアまたはプラグインによって提供され、使用される必要があります。 たとえば、多くのバックアッププラグインは定期的なバックアップをサポートしています。 毎���のバックアップを行うには、WP Crontrol に毎週の cron スケジュールを入力すると、バックアッププラグインはイベントの間隔としてそれを利用できます。

新しい cron イベントを作成するには?

定期的に実行される cron イベント機能を取得するには、2つのステップがあります。 最初のステップは、WordPressにフックについて伝えることです。 これは、WP Crontrol が提供するために作成された部分です。 2番目のステップは、フックが実行されたときに関数を呼び出すことです。

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.

ステップ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!' );
}

新しい PHP cron イベントを作成するにはどうすればよいですか ?

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).

PHP cron イベントの作成、編集、実行には、制限されたセキュリティ権限が適用されます。 PHP cron イベントの機能とセキュリティについては、WP Crontrol ウェブサイトですべて読むことができます

どのユーザーが PHP cron イベントとスケジュールを管理できますか ?

manage_options 権限を持つユーザーだけが cron イベントとスケジュールを管理できます。デフォルトでは、管理者のみがこの機能を備えています。

PHP の cron イベントを管理できるユーザーは?これは危険なのでしょうか?

edit_files 権限を持つユーザーのみが PHP の cron イベントを管理することができます。これは、ユーザーが WordPress 管理エリアを介してファイルを編集できない場合(プラグインエディタやテーマエディタなど)、WP Crontrol 内で PHP の cron イベントを追加、編集、削除できないことを意味します。デフォルトでは、管理者のみがこの機能を持ち、マルチサイトを有効にすると特権管理者のみがこの権限を持つようになります。

DISALLOW_FILE_MODSDISALLOW_FILE_EDIT の設定定数でファイル編集が無効になっている場合、どのユーザーも edit_files の権限を持つことができません。すなわち PHP cron イベントの追加、編集、削除が許可されません。

そのため、WP Crontrol を有効にしても、任意の PHP コードを実行するのに必要なユーザーのアクセスレベルは変わりません。

PHP cron イベントの機能とセキュリティについては、WP Crontrol ウェブサイトですべて読むことができます

WP-CLI コマンドは利用できますか ?

以前に WP Crontrol に含まれていた Cron コマンドは、WP-CLI 自体の一部になりま��た。 詳細については、wp help cron を参照してください。

WP Crontrol プラグインを無効化するとどうなりますか?

プラグインを無効化すると何が起こるかについては、WP Crontrol ウェブサイトですべて読むことができます

セキュリティバグを報告するにはどうすればよいですか?

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.

プラグインのヘッダー画像の写真は誰が撮ったものですか?

この写真は、Michael Pardoが撮影したもので、パブリックドメインです。

評価

2024年7月15日
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
2024年3月9日
Use this tool to run my own php script to maintain my uploaded webcam images. Thanks a lot for this plugin.
2024年3月9日
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.
2023年11月20日
Thank you a lot, helped me understanding how WP-Cron works. Thanks! 😄
149件のレビューをすべて表示

貢献者と開発者

WP Crontrol はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WP Crontrol” は18ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“WP Crontrol” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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.