wp_install
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-admin/includes/upgrade.php 152
do_action( 'wp_install', $user );