wp_schedule_update_checks() WordPress Function
The wp_schedule_update_checks() function schedules update checks to run periodically on a Wordpress site. This function is useful for keeping a Wordpress site up-to-date with the latest security patches and features.
wp_schedule_update_checks() #
Schedule core, theme, and plugin update checks.
Source
File: wp-includes/update.php
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' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |