get_theme_update_available()
get_theme_update_available( WP_Theme $theme )
如果有可用的主题更新,则检索更新链接。
Retrieve the update link if there is a theme update available.
说明(Description)
如果有可用的更新,将返回链接。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$theme | (WP_Theme) | 必需 | WP_主题对象。 |
返回(Return)
(string|false)更新链接的HTML,如果传递了无效信息,则为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.8.0 | wp-admin/includes/theme.php:169 | 2 | 9 |
get_theme_update_available() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_theme_update_available/