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.
Source
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |