manage_plugins_custom_column
云策文档标注
概述
manage_plugins_custom_column 是一个 WordPress 动作钩子,用于在插件列表表格的每个自定义列中触发,允许开发者自定义列内容。
关键要点
- 钩子名称:manage_plugins_custom_column
- 触发位置:插件列表表格的每个自定义列内部
- 参数:$column_name(列名)、$plugin_file(插件文件路径)、$plugin_data(插件数据数组)
- 相关函数:WP_Plugins_List_Table::single_row()
- 引入版本:WordPress 3.1.0
代码示例
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );
原文内容
Fires inside each custom column of the Plugins list table.
Parameters
$column_namestring-
Name of the column.
$plugin_filestring-
Path to the plugin file relative to the plugins directory.
$plugin_dataarray-
An array of plugin data. See get_plugin_data() and the ‘plugin_row_meta’ filter for the list of possible values.
Source
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |