wp_install action-hookWP 3.9.0

Fires after a site is fully installed.

Usage

add_action( 'wp_install', 'wp_kama_install_action' );

/**
 * Function for `wp_install` action-hook.
 * 
 * @param WP_User $user The site owner.
 *
 * @return void
 */
function wp_kama_install_action( $user ){

	// action...
}
$user(WP_User)
The site owner.

Changelog

Since 3.9.0 Introduced.

Where the hook is called

wp_install()
wp_install
wp-admin/includes/upgrade.php 128
do_action( 'wp_install', $user );

Where the hook is used in WordPress

Usage not found.