钩子文档

after_theme_row

💡 云策文档标注

概述

after_theme_row 是一个 WordPress Hook,在 Multisite 网络的主题列表表格中,每行之后触发。它允许开发者在主题行后执行自定义操作。

关键要点

  • Hook 名称:after_theme_row
  • 触发时机:在 Multisite 主题列表表格的每行之后
  • 参数:$stylesheet(主题目录名)、$theme(当前 WP_Theme 对象)、$status(主题状态)
  • 相关函数:WP_MS_Themes_List_Table::single_row()
  • 引入版本:WordPress 3.1.0

代码示例

do_action( 'after_theme_row', $stylesheet, $theme, $status );

📄 原文内容

Fires after each row in the Multisite themes list table.

Parameters

$stylesheetstring
Directory name of the theme.
$themeWP_Theme
Current WP_Theme object.
$statusstring
Status of the theme.

Source

do_action( 'after_theme_row', $stylesheet, $theme, $status );

Changelog

Version Description
3.1.0 Introduced.