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
150   KEY user_id (user_id),
151   KEY meta_key (meta_key)
152 ) $charset_collate;";
153
154 function populate_options() {
155      global $wpdb, $wp_db_version;
156      
157      $guessurl = wp_guess_url();
158      
159      do_action('populate_options');
160      
161      add_option('siteurl', $guessurl);
162      add_option('blogname', __('My Blog'));
163      add_option('blogdescription', __('Just another WordPress weblog'));
164      add_option('users_can_register', 0);
165      add_option('admin_email', 'you@example.com');
166      add_option('start_of_week', 1);
167      add_option('use_balanceTags', 0);
168      add_option('use_smilies', 1);