PHP 클래스 Cron_Schedule_Command, wp-cli
## EXAMPLES
# List available cron schedules
$ wp cron schedule list
+------------+-------------+----------+
| name | display | interval |
+------------+-------------+----------+
| hourly | Once Hourly | 3600 |
| twicedaily | Twice Daily | 43200 |
| daily | Once Daily | 86400 |
+------------+-------------+----------+
파일 보기
프로젝트 열기: wp-cli/wp-cli
공개 메소드들
메소드 |
설명 |
|
list_ ( $args, $assoc_args ) |
List available cron schedules. |
|
보호된 메소드들
비공개 메소드들
메소드 상세
get_schedules()
보호된 정적인 메소드
Return a list of the cron schedules sorted according to interval.
## OPTIONS
[--fields=]
: Limit the output to specific object fields.
[--field=]
: Prints the value of a single field for each schedule.
[--format=]
: Render output in a particular format.
---
default: table
options:
- table
- csv
- ids
- json
- yaml
---
## AVAILABLE FIELDS
These fields will be displayed by default for each cron schedule:
* name
* display
* interval
There are no additional fields.
## EXAMPLES
# List available cron schedules
$ wp cron schedule list
+------------+-------------+----------+
| name | display | interval |
+------------+-------------+----------+
| hourly | Once Hourly | 3600 |
| twicedaily | Twice Daily | 43200 |
| daily | Once Daily | 86400 |
+------------+-------------+----------+
# List id of available cron schedule
$ wp cron schedule list --fields=name --format=ids
hourly twicedaily daily
public list_ ( $args, $assoc_args ) |
Callback function to sort the cron schedule array by interval.