Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/install blog defaults

This page redirects to an external site: https://developer.wordpress.org/reference/functions/install_blog_defaults/

This page is marked as incomplete. You can help Codex by expanding it.

Description

Sets blog defaults.

This function creates a row in the wp_blogs table.

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php install_blog_defaults</span><span style="color: #007700">(</span><span style="color: #0000BB">$blog_id</span><span style="color: #007700">, </span><span style="color: #0000BB">$user_id</span><span style="color: #007700">) </span><span style="color: #0000BB">?></span></code>

Parameters

$blog_id
(integer) (optional) value is ignored
Default: None
$user_id
(integer) (required) User of the new blog
Default: None

Return Value

This function does not return a value

Examples


Notes

Change Log

Since: MU

Source File

install_blog_defaults() is located in wp-includes/ms-functions.php

Related

 

See also index of Function Reference and index of Template Tags.