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

  1. if ( !function_exists( 'theme_update_available' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/theme.php'; 
  3.  
  4. // Theme data object. 
  5. $theme = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = theme_update_available($theme); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/theme.php  
  1. function theme_update_available( $theme ) { 
  2. echo get_theme_update_available( $theme );