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