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 |
---|---|
197 | if ( has_action( 'blog_privacy_selector' ) ) { |
198 | ?> |
199 | <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> /> |
200 | <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br /> |
201 | <input id="blog-norobots" type="radio" name="blog_public" aria-describedby="public-desc" value="0" <?php checked( 0, $blog_public ); ?> /> |
202 | <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label> |
203 | <p id="public-desc" class="description"><?php _e( 'Note: Discouraging search engines does not block access to your site — it is up to search engines to honor your request.' ); ?></p> |
204 | <?php |
205 | /** This action is documented in wp-admin/options-reading.php */ |
206 | do_action( 'blog_privacy_selector' ); |
207 | } else { |
208 | ?> |
209 | <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" aria-describedby="privacy-desc" value="0" <?php checked( 0, $blog_public ); ?> /> |
210 | <?php _e( 'Discourage search engines from indexing this site' ); ?></label> |
211 | <p id="privacy-desc" class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p> |
212 | <?php } ?> |
213 | </fieldset> |
214 | </td> |
215 | </tr> |