WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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); |