Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_install

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
97      wp_cache_flush();
98
99      /**
100       * Fires after a site is fully installed.
101       *
102       * @since 3.9.0
103       *
104       * @param WP_User $user The site owner.
105       */
106      do_action( 'wp_install', $user );
107
108      return array('url' => $guessurl, 'user_id' => $user_id, 'password' => $user_password, 'password_message' => $message);
109 }
110 endif;
111
112 if ( !function_exists('wp_install_defaults') ) :
113 /**
114  * Creates the initial content for a newly-installed site.
115  *