manage_{$this->screen->id}_custom_column_js_template
云策文档标注
概述
此 Hook 在 Application Passwords 列表表的 JavaScript 行模板中为每个自定义列触发,用于扩展列功能。
关键要点
- Hook 名称:manage_{$this->screen->id}_custom_column_js_template
- 触发时机:在 JavaScript 行模板中为每个自定义列执行
- 参数:$column_name(字符串,自定义列的名称)
- 自定义列通过 'manage_application-passwords-user_columns' 过滤器注册
- 相关函数:WP_Application_Passwords_List_Table::print_js_template_row() 用于打印新行项的 JavaScript 模板
- 引入版本:WordPress 5.6.0
原文内容
Fires in the JavaScript row template for each custom column in the Application Passwords list table.
Description
Custom columns are registered using the ‘manage_application-passwords-user_columns’ filter.
Parameters
$column_namestring-
Name of the custom column.
Source
do_action( "manage_{$this->screen->id}_custom_column_js_template", $column_name );
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |