WordPress.org

Codex

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

Function Reference/wp install defaults

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

Description

Installs numerous default values into the database and sets up a few examples.

NOTE: This function is called by installation and upgrade scripts, it is not intended to be used by plugin and theme developers. This page is provided for informational purposes only.

Usage

<?php wp_install_defaults$user_id ?>

Parameters

$user_id
(integer) (required) A user ID. Will be assigned as author of the posts created by this function, etc.
Default: None

Return Value

This function does not return a value.

Examples


Notes

This function is called by installation and upgrade scripts, it is not intended to be used by plugin and theme developers. This page is provided for informational purposes only. However, this function is pluggable, and may be overridden.

Change Log

Since: 2.1.0

Source File

wp_install_defaults() is located in wp-admin/includes/upgrade.php

Related

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