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.

Top ↑

See also


Top ↑

Parameters

$theme

(WP_Theme)(Required)Theme data object.


Top ↑

Source

File: wp-admin/includes/theme.php

function theme_update_available( $theme ) {
	echo get_theme_update_available( $theme );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.