Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_blogform

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