2020-05-02 / 2479阅 / 悠然
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.
The domain of the new site.
The path of the new site.
Unless you're running a multi-network install, be sure to set this value to 1.
(int|false) The ID of the new row