| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
A simple set of functions to check the WordPress.org Version Update service.
| File Size: | 1351 lines (42 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 4 files wp-admin/includes/admin.php wp-admin/includes/plugin.php wp-admin/includes/file.php wp-admin/includes/class-wp-upgrader.php |
| wp_version_check( $extra_stats = array() X-Ref |
| Checks WordPress version against the newest version. The WordPress version, PHP version, and locale is sent to api.wordpress.org. Checks against the WordPress server at api.wordpress.org. Will only check if WordPress isn't installing. param: array $extra_stats Extra statistics to report to the WordPress.org API. param: bool $force_check Whether to bypass the transient cache and force a fresh update check. |
| wp_update_plugins( $extra_stats = array() X-Ref |
| No description |
| wp_update_themes( $extra_stats = array() X-Ref |
| Checks for available updates to themes based on the latest versions hosted on WordPress.org. Despite its name this function does not actually perform any updates, it only checks for available updates. A list of all themes installed is sent to api.wordpress.org, along with the site locale. Checks against the WordPress server at api.wordpress.org. Will only check if WordPress isn't installing. param: array $extra_stats Extra statistics to report to the WordPress.org API. |
| wp_maybe_auto_update() X-Ref |
| Performs WordPress automatic background updates. Updates WordPress core plus any plugins and themes that have automatic updates enabled. |
| wp_get_translation_updates() X-Ref |
| Retrieves a list of all language updates available. return: object[] Array of translation objects that have available updates. |
| wp_get_translation_update_id( $update ) X-Ref |
| Gets a stable identifier for a translation update. return: string Translation update identifier. param: array|object $update Translation update data. |
| wp_get_translation_updates_by_id( $updates = null ) X-Ref |
| Gets translation updates keyed by their stable identifiers. return: object[] Translation updates keyed by identifier. param: object[]|null $updates Optional. Translation update objects. Default null. |
| wp_get_deferred_translation_updates( $updates = null ) X-Ref |
| Gets deferred translation updates. Deferred updates remain available but are skipped by background updates by default. Explicit updates, including WP-CLI, can still install them. Successful installation through Language_Pack_Upgrader clears the matching deferral; failure leaves it unchanged. return: array[] Deferred translation updates keyed by identifier. param: object[]|null $updates Optional. Translation update objects used to filter deferred updates |
| wp_is_translation_update_deferred( $update, $deferred_updates = null ) X-Ref |
| Determines whether a translation update has been deferred. return: bool Whether the translation update has been deferred. param: array|object $update Translation update data. param: array[]|null $deferred_updates Optional. Deferred translation updates keyed by identifier. |
| wp_set_deferred_translation_updates( $updates ) X-Ref |
| Stores deferred translation updates. return: void param: object[]|array[] $updates Translation updates to defer. |
| wp_get_update_data() X-Ref |
| Collects counts and UI strings for available updates. return: array { |
| _maybe_update_core() X-Ref |
| Determines whether core should be updated. |
| _maybe_update_plugins() X-Ref |
| Checks the last time plugins were run before checking plugin versions. This might have been backported to WordPress 2.6.1 for performance reasons. This is used for the wp-admin to check only so often instead of every page load. |
| _maybe_update_themes() X-Ref |
| Checks themes versions only after a duration of time. This is for performance reasons to make sure that on the theme version checker is not run on every page load. |
| wp_schedule_update_checks() X-Ref |
| Schedules core, theme, and plugin update checks. |
| wp_clean_update_cache() X-Ref |
| Clears existing update caches for plugins, themes, and core. |
| wp_delete_all_temp_backups() X-Ref |
| Schedules the removal of all contents in the temporary backup directory. |
| _wp_delete_all_temp_backups() X-Ref |
| Deletes all contents in the temporary backup directory. |
| Generated : Mon Nov 9 08:20:01 2026 | Cross-referenced by PHPXref |