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 |
---|---|
13 | <?php wp_nonce_field('update-options') ?> |
14 | <table class="optiontable"> |
15 | <tr valign="top"> |
16 | <th scope="row"><?php _e('Blog visibility:') ?> </th> |
17 | <td> |
18 | <p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> |
19 | <label for="blog-public"><?php _e('I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers');?></label></p> |
20 | <p><input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> |
21 | <label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label></p> |
22 | <?php do_action('blog_privacy_selector'); ?> |
23 | </td> |
24 | </tr> |
25 | </table> |
26 |
|
27 | <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> |
28 | <input type="hidden" name="action" value="update" /> |
29 | <input type="hidden" name="page_options" value="blog_public" /> |
30 | </p> |
31 | </form> |