首页 WordPress函数大全 populate_network()

populate_network()

2020-05-02 / 2165阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

populate_network( int $network_id = 1, string $domain = '', string $email = '', string $site_name = '', string $path = '/', bool $subdomain_install = false )

填充网络设置。

描述

参数

$network_id

(int)
(Optional)
ID of network to populate.

Default value: 1

$domain

(string)
(Optional)
The domain name for the network (eg. "example.com").

Default value: ''

$email

(string)
(Optional)
Email address for the network administrator.

Default value: ''

$site_name

(string)
(Optional)
The name of the network.

Default value: ''

$path

(string)
(Optional)
The path to append to the network's domain name.

Default value: '/'

$subdomain_install

(bool)
(Optional)
Whether the network is a subdomain installation or a subdirectory installation. Default false, meaning the network is a subdirectory installation.

Default value: false

返回

(bool|WP_Error) True>WP_Error on warning (with the installation otherwise successful, so the error code must be checked) or failure.

大家谈论
    我的见解