theme_update_available
Check if there is an update for a theme available.
Description
theme_update_available( (WP_Theme) $theme );
Will display link, if there is an update available.
Parameters (1)
- 0. $theme (WP_Theme)
- Theme data object.
Usage
if ( !function_exists( 'theme_update_available' ) ) { require_once ABSPATH . '/wp-admin/includes/theme.php'; } // Theme data object. $theme = null; // NOTICE! Understand what this does before running. $result = theme_update_available($theme);
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/theme.php
- function theme_update_available( $theme ) {
- echo get_theme_update_available( $theme );
- }