wp_install_defaults

SummerySummery

Creates the initial content for a newly-installed site.

Syntax

wp_install_defaults( int $user_id )

DescriptionDescription

Adds the default "Uncategorized" category, the first post (with comment), first page, and default widgets for default theme for the current version.

ParametersParameters

$user_id

(int) (Required) User ID.

SourceSource

File: wp-admin/includes/upgrade.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top