after_theme_row_{$stylesheet}
云策文档标注
概述
after_theme_row_{$stylesheet} 是一个 WordPress 动作钩子,用于在 Multisite 主题列表表中每个特定行之后触发。它允许开发者在主题行显示后执行自定义操作。
关键要点
- 钩子名称的动态部分 {$stylesheet} 指主题的目录名,通常与主题的模板名相同。
- 参数包括 $stylesheet(字符串,主题目录名)、$theme(WP_Theme 对象,当前主题对象)和 $status(字符串,主题状态)。
- 此钩子由 WP_MS_Themes_List_Table::single_row() 方法调用,位于 wp-admin/includes/class-wp-ms-themes-list-table.php 文件中。
- 首次引入于 WordPress 3.5.0 版本。
原文内容
Fires after each specific row in the Multisite themes list table.
Description
The dynamic portion of the hook name, $stylesheet, refers to the directory name of the theme, most often synonymous with the template name of the theme.
Parameters
Source
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |