manage_sites_extra_tablenav
云策文档标注
概述
manage_sites_extra_tablenav 是一个 WordPress 动作钩子,用于在 MS 站点列表表格的导航栏中“actions” div 关闭后触发,允许开发者添加自定义控件。
关键要点
- 钩子名称:manage_sites_extra_tablenav
- 触发时机:在 MS 站点列表表格的 tablenav 中“actions” div 关闭后立即执行
- 参数:$which,字符串类型,指定额外导航标记的位置,可选 'top' 或 'bottom'
- 相关函数:WP_MS_Sites_List_Table::extra_tablenav(),用于在批量操作和分页之间显示额外控件
- 引入版本:WordPress 5.3.0
原文内容
Fires immediately following the closing “actions” div in the tablenav for the MS sites list table.
Parameters
$whichstring-
The location of the extra table nav markup: Either
'top'or'bottom'.
Source
do_action( 'manage_sites_extra_tablenav', $which );
Changelog
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |