2020-05-02 / 2620阅 / 悠然
Warning: This function has been deprecated. Use wp_insert_site() instead.
Store basic site info in the blogs table.
This function creates a row in the wp_blogs table and returns the new blog’s ID. It is the first step in creating a new blog.
Top ↑
(string)
(Required)
The domain of the new site.
(string)
(Required)
The path of the new site.
(int)
(Required)
Unless you're running a multi-network install, be sure to set this value to 1.
(int|false) The ID of the new row