admin管理员组文章数量:1124775
I was taking a look at the inner workings of the Cron System, and found something odd: apparently, you can set a callback to event recurrence schedules. However, I can't find any documentation on that topic. The only indication I've found of what this is used for comes from _wp_cron
's dockbloc: Runs scheduled callbacks or spawns cron for all scheduled events. Is that used anywhere by WordPress core? Is that a left over from the early days of WordPress? Is that meant for public usage?
For reference, take a look at line 1022 in wp-includes/cron.php:
if ( isset( $schedules[ $hook ]['callback'] )
&& ! call_user_func( $schedules[ $hook ]['callback'] )
) {
continue;
}
Here $schedules
is the return value of wp_get_schedules
.
本文标签: wp cronWhat are scheduled callbacks
版权声明:本文标题:wp cron - What are scheduled callbacks? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736647016a1946132.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论