Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: populate_options

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
173  * @since 1.5.0
174  * @uses $wpdb
175  * @uses $wp_db_version
176  */
177 function populate_options() {
178      global $wpdb, $wp_db_version;
179
180      $guessurl = wp_guess_url();
181
182      do_action('populate_options');
183
184      add_option('siteurl', $guessurl);
185      add_option('blogname', __('My Blog'));
186      add_option('blogdescription', __('Just another WordPress weblog'));
187      add_option('users_can_register', 0);
188      add_option('admin_email', 'you@example.com');
189      add_option('start_of_week', 1);
190      add_option('use_balanceTags', 0);
191      add_option('use_smilies', 1);