wp_install_defaults()获取默认信息

目录

描述

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.

wp_install_defaults() 描述

用法

<?php wp_install_defaults$user_id ?>

wp_install_defaults() 用法

参数

$user_id

(integer) (必填) A user ID. Will be assigned as author of the posts created by this function, etc.

默认值: None

wp_install_defaults() 参数

示例

wp_install_defaults() 示例

注意

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.

wp_install_defaults() 注意

历史

添加于 版本: 2.1.0

wp_install_defaults() 历史

源文件

wp_install_defaults() 函数的代码位于 wp-admin/includes/upgrade.php

wp_install_defaults() 源文件