populate_site_meta()
populate_site_meta( int $site_id, array $meta = array() )
创建WordPress站点元并设置默认值。
Creates WordPress site meta and sets the default values.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$site_id | (int) | 必需 | 要为其填充元的站点ID。 |
$meta | (array) | 可选 | 自定义meta$key=>$要使用的值对。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-admin/includes/schema.php:1296 | 1 function | 7 |
populate_site_meta() 为WP2原创文章,链接:https://www.wp2.cn/functions/populate_site_meta/