get_theme_updates() WordPress Function
The get_theme_updates() function allows you to check if there are any updates available for your installed themes. This is useful for keeping your themes up-to-date and ensuring that you have the latest security fixes and features.
get_theme_updates() #
Return
(array)
Source
File: wp-admin/includes/update.php
function get_theme_updates() { $current = get_site_transient( 'update_themes' ); if ( ! isset( $current->response ) ) { return array(); } $update_themes = array(); foreach ( $current->response as $stylesheet => $data ) { $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); $update_themes[ $stylesheet ]->update = $data; } return $update_themes; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |