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 |
---|---|
109 | </label> |
110 | <label class="checkbox" for="blog_public_off"> |
111 | <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if ( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> /> |
112 | <strong><?php _e( 'No' ); ?></strong> |
113 | </label> |
114 | </p> |
115 | </div> |
116 |
|
117 | <?php |
118 | do_action('signup_blogform', $errors); |
119 | } |
120 |
|
121 | function validate_blog_form() { |
122 | $user = ''; |
123 | if ( is_user_logged_in() ) |
124 | $user = wp_get_current_user(); |
125 |
|
126 | return wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title'], $user); |
127 | } |