函数文档

post_comment_meta_box_thead()

💡 云策文档标注

概述

post_comment_meta_box_thead() 函数用于在文章评论管理表格的头部移除特定列,以自定义显示内容。它通过过滤数组参数来实现列调整。

关键要点

  • 函数接受一个数组参数 $result,代表表格头部行数据
  • 函数移除数组中的 'cb' 和 'response' 键,返回修改后的数组
  • 此函数自 WordPress 3.0.0 版本引入,用于评论管理界面的定制

代码示例

function post_comment_meta_box_thead( $result ) {
	unset( $result['cb'], $result['response'] );
	return $result;
}

📄 原文内容

Displays comments for post table header

Parameters

$resultarrayrequired
Table header rows.

Return

array

Source

function post_comment_meta_box_thead( $result ) {
	unset( $result['cb'], $result['response'] );
	return $result;
}

Changelog

Version Description
3.0.0 Introduced.