bp_signup_validate

  • do_action( 'bp_signup_validate' )

    Source Reference:

    • Component: BuddyPress:: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 109
      				// If there are errors with blog details, set them for display
      				if ( !empty( $blog_details['errors']->errors['blogname'] ) )
      					$bp->signup->errors['signup_blog_url'] = $blog_details['errors']->errors['blogname'][0];
      
      				if ( !empty( $blog_details['errors']->errors['blog_title'] ) )
      					$bp->signup->errors['signup_blog_title'] = $blog_details['errors']->errors['blog_title'][0];
      			}
      		}
      
      		do_action( 'bp_signup_validate' );
      
      		// Add any errors to the action for the field in the template for display.
      		if ( !empty( $bp->signup->errors ) ) {
      			foreach ( (array)$bp->signup->errors as $fieldname => $error_message )
      				add_action( 'bp_' . $fieldname . '_errors', create_function( '', 'echo apply_filters('bp_members_signup_error_message', "<div class="error">' . $error_message . '</div>" );' ) );
      		} else {
      			$bp->signup->step = 'save-details';
      
      			// No errors! Let's register those deets.
      			$active_signup = !empty( $bp->site_options['registration'] ) ? $bp->site_options['registration'] : '';
      

Comments are closed.