theme_update_available() WordPress Function
The theme_update_available() function is used to determine whether a theme update is available for the currently active theme. If an update is available, the function will return true, otherwise it will return false.
theme_update_available( WP_Theme $theme ) #
Check if there is an update for a theme available.
Description
Will display link, if there is an update available.
See also
Parameters
- $theme
(WP_Theme)(Required)Theme data object.
Source
File: wp-admin/includes/theme.php
function theme_update_available( $theme ) { echo get_theme_update_available( $theme ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |