操作挂钩:在成功添加特定网络选项后激发。
do_action ( “add_site_option_{$option}”, string $option , mixed $value , int $network_id )
说明(Description)
钩子名$option的动态部分引用选项名。
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $option | (string) | 网络选项的名称。 |
| $value | (mixed) | 网络选项的值。 |
| $network_id | (int) | 网络的ID。 |
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.7.0 | wp-includes/option.php:1442 | 1 | 0 |





















