WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp install defaults

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

Contents

Description

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

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.