theme_auto_update_setting_html
云策文档标注
概述
此过滤器用于修改主题列表表中每个主题的自动更新设置HTML输出,允许开发者自定义显示内容。
关键要点
- 过滤器名称:theme_auto_update_setting_html
- 参数:$html(主题自动更新设置的HTML字符串)、$stylesheet(主题目录名)、$theme(WP_Theme对象)
- 应用场景:在WP_MS_Themes_List_Table::column_autoupdates()方法中调用,控制自动更新列的显示
- 引入版本:WordPress 5.5.0
代码示例
echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
原文内容
Filters the HTML of the auto-updates setting for each theme in the Themes list table.
Parameters
Source
echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |