钩子文档

restrict_manage_sites

💡 云策文档标注

概述

restrict_manage_sites 是一个 WordPress 动作钩子,在 MS 站点列表表格的 Filter 按钮前触发,用于在列表顶部或底部添加额外控件。

关键要点

  • 钩子名称:restrict_manage_sites
  • 触发时机:在 MS 站点列表表格的 Filter 按钮前执行
  • 参数:$which,字符串类型,指定额外表格导航标记的位置,可选 'top' 或 'bottom'
  • 相关函数:WP_MS_Sites_List_Table::extra_tablenav(),用于在批量操作和分页之间显示额外控件
  • 引入版本:WordPress 5.3.0

📄 原文内容

Fires before the Filter button on the MS sites list table.

Parameters

$whichstring
The location of the extra table nav markup: Either 'top' or 'bottom'.

Source

do_action( 'restrict_manage_sites', $which );

Changelog

Version Description
5.3.0 Introduced.