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 |
|---|---|
| 41 | <table class="form-table"> |
| 42 | <tr valign="top"> |
| 43 | <th scope="row"><?php _e( 'Site Visibility' ); ?> </th> |
| 44 | <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend> |
| 45 | <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> |
| 46 | <label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/> |
| 47 | <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> |
| 48 | <label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label> |
| 49 | <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> |
| 50 | <?php do_action('blog_privacy_selector'); ?> |
| 51 | </fieldset></td> |
| 52 | </tr> |
| 53 | <?php do_settings_fields('privacy', 'default'); ?> |
| 54 | </table> |
| 55 | |
| 56 | <?php do_settings_sections('privacy'); ?> |
| 57 | |
| 58 | <?php submit_button(); ?> |
| 59 | </form> |