wp_install WordPress Action Hook

The wp_install hook is one of the most important hooks in WordPress. It is called during the installation process, after the database has been created and populated with the default data. This hook gives you the chance to modify the default data and to add your own data to the database. You can use it to create your own tables, to add custom data to the default tables, or to do anything else that you need to do during the installation process. If you are creating a plugin or a theme that requires data to be stored in the database, then you will need to use the wp_install hook.

do_action( 'wp_install', WP_User $user ) #

Fires after a site is fully installed.


Parameters

$user

(WP_User)The site owner.


Top ↑

Source

File: wp-admin/includes/upgrade.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.