回答編集履歴
1
質問者のコメントに対する回答を追記
test
CHANGED
@@ -1 +1,29 @@
|
|
1
1
|
WP-Cronにアクションを登録するときに実行間隔が設定されているため、そちらを変更することで可能です。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
**追記**
|
8
|
+
|
9
|
+
デフォルトで存在する頻度はリファレンスにある通りです。
|
10
|
+
|
11
|
+
> **$recurrence**
|
12
|
+
|
13
|
+
> (string) (required) How often the event should reoccur. Valid values:
|
14
|
+
|
15
|
+
> - hourly
|
16
|
+
|
17
|
+
> - twicedaily
|
18
|
+
|
19
|
+
> - daily
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
[https://codex.wordpress.org/Function_Reference/wp_schedule_event](https://codex.wordpress.org/Function_Reference/wp_schedule_event)
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
それら以外の頻度でスケジュールしたい場合はcron_schedulesフックを使用して自分で登録します。
|
28
|
+
|
29
|
+
[https://isabelcastillo.com/run-a-wp_schedule_event-recurrence-every-3-minutes](https://isabelcastillo.com/run-a-wp_schedule_event-recurrence-every-3-minutes)
|