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 |
|---|---|
| 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); |