Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_blog_init

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
294      <?php
295      do_action( 'signup_finished' );
296 }
297
298 function signup_blog($user_name = '', $user_email = '', $blogname = '', $blog_title = '', $errors = '') {
299      if ( !is_wp_error($errors) )
300           $errors = new WP_Error();
301
302      // allow definition of default variables
303      $filtered_results = apply_filters('signup_blog_init', array('user_name' => $user_name, 'user_email' => $user_email, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors ));
304      $user_name = $filtered_results['user_name'];
305      $user_email = $filtered_results['user_email'];
306      $blogname = $filtered_results['blogname'];
307      $blog_title = $filtered_results['blog_title'];
308      $errors = $filtered_results['errors'];
309
310      if ( empty($blogname) )
311           $blogname = $user_name;
312      ?>