theme_auto_update_setting_template
云策文档标注
概述
此文档介绍 theme_auto_update_setting_template 过滤器,它用于过滤主题自动更新设置链接的 JavaScript 模板。该过滤器在 WordPress 5.5.0 版本中引入。
关键要点
- 过滤器名称:theme_auto_update_setting_template
- 用途:修改主题自动更新设置链接的 JavaScript 模板显示
- 参数:$template(字符串类型,表示模板字符串)
- 相关函数:wp_theme_auto_update_setting_template() 用于返回此模板
- 数据对象属性参考:wp_prepare_themes_for_js()
原文内容
Filters the JavaScript template used to display the auto-update setting for a theme (in the overlay).
Description
See wp_prepare_themes_for_js() for the properties of the data object.
Parameters
$templatestring-
The template for displaying the auto-update setting link.
Source
return apply_filters( 'theme_auto_update_setting_template', $template );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |