钩子文档

theme_row_meta

💡 云策文档标注

概述

theme_row_meta 过滤器用于修改多站点主题列表表中每个主题的行元数据数组。它允许开发者自定义主题的元信息显示,如版本、作者和主题URI。

关键要点

  • 过滤器名称:theme_row_meta
  • 用途:过滤多站点主题列表中的主题行元数据
  • 参数:$theme_meta(元数据数组)、$stylesheet(主题目录名)、$theme(WP_Theme对象)、$status(主题状态)
  • 相关类:WP_MS_Themes_List_Table,用于处理描述列输出
  • 引入版本:WordPress 3.1.0

代码示例

$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );

📄 原文内容

Filters the array of row meta for each theme in the Multisite themes list table.

Parameters

$theme_metastring[]
An array of the theme’s metadata, including the version, author, and theme URI.
$stylesheetstring
Directory name of the theme.
$themeWP_Theme
WP_Theme object.
$statusstring
Status of the theme.

Source

$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );

Changelog

Version Description
3.1.0 Introduced.