signup_another_blog_init

  • apply_filters('signup_another_blog_init', array('blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors ))

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-template.php :: Trac Source Line: 415
      	if ( isset($_POST['submit']) ) {
      		bp_blogs_validate_blog_signup();
      	} else {
      		if ( ! is_wp_error($errors) ) {
      			$errors = new WP_Error();
      		}
      
      		// allow definition of default variables
      		$filtered_results = apply_filters('signup_another_blog_init', array('blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors ));
      		$blogname = $filtered_results['blogname'];
      		$blog_title = $filtered_results['blog_title'];
      		$errors = $filtered_results['errors'];
      
      		if ( $errors->get_error_code() ) {
      			echo "<p>" . __('There was a problem, please correct the form below and try again.', 'buddypress') . "</p>";
      		}
      		?>
      		<p><?php printf(__("By filling out the form below, you can <strong>add a site to your account</strong>. There is no limit to the number of sites that you can have, so create to your heart's content, but blog responsibly!", 'buddypress'), $current_user->display_name) ?></p>
      

Comments are closed.