Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: blog_privacy_selector

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
36
37 <table class="form-table">
38 <tr valign="top">
39 <th scope="row"><?php _e('Site Visibility') ?> </th>
40 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Site Visibility') ?> </span></legend>
41 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
42 <label for="blog-public"><?php _e('I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers');?></label><br/>
43 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
44 <label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label>
45 <?php do_action('blog_privacy_selector'); ?>
46 </fieldset></td>
47 </tr>
48 <?php do_settings_fields('privacy', 'default'); ?>
49 </table>
50
51 <?php do_settings_sections('privacy'); ?>
52
53 <?php submit_button(); ?>
54 </form>