常用函数-wp_get_schedule()

0条评论

说明

利用参数检索用于钩子(hook)的定时事件。

用法

<?php wp_get_schedule( $hook, $args ) ?>

参数

$hook

(回调)(必需)运行定时事件时需要调用的函数或方法

默认值:None

$args

(数组)(可选)传递给钩子函数的参数

默认值:array

返回的值

(数组|布尔值)

如果没有事件,返回false;如有则返回事件。

示例

注释

  • 以执行无人看管的预定事件的unix程序名称命名定时任务。

修改记录

自2.1.0版本后

源文件

wp_get_schedule()位于 wp-includes/cron.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.