network_site_info_form
云策文档标注
概述
network_site_info_form 是一个在 WordPress 网络管理后台的站点信息表单末尾触发的 Hook,用于扩展表单功能。
关键要点
- 这是一个 Action Hook,在站点信息表单末尾执行自定义代码。
- 传递一个参数 $id,表示站点 ID,可用于获取或操作特定站点数据。
- 从 WordPress 5.6.0 版本开始引入。
代码示例
do_action( 'network_site_info_form', $id );
原文内容
Fires at the end of the site info form in network admin.
Parameters
$idint-
The site ID.
Source
do_action( 'network_site_info_form', $id );
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |