wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_schedule_update_checks › WordPress Function
Since3.1.0
已弃用n/a
› wp_schedule_update_checks ( 没有参数 )
定义在: |
|
文档: |
Schedules core, theme, and plugin update checks.
源码
function wp_schedule_update_checks() { if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) { wp_schedule_event( time(), 'twicedaily', 'wp_version_check' ); } if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) { wp_schedule_event( time(), 'twicedaily', 'wp_update_plugins' ); } if ( ! wp_next_scheduled( 'wp_update_themes' ) && ! wp_installing() ) { wp_schedule_event( time(), 'twicedaily', 'wp_update_themes' ); } }