WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wpmu validate blog signup

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Processes new site registrations.

Checks the data provided by the user during blog signup. Verifies the validity and uniqueness of blog paths and domains.

Usage

<?php wpmu_validate_blog_signup($blogname$blog_title$user); ?>

Parameters

$blogname
(string) (required) The blog name provided by the user. Must be unique.
Default: None
$blog_title
(string) (required) The blog title provided by the user.
Default: None
$cap
(string) (optional) Provide the other user's login name to override the restriction to block blog names equivalent to another user's login name.
Default: empty string

Return Value

(array) 
Contains the new site data and error messages.

Examples


Notes

  • This function prevents the current user from registering a new site with a blogname equivalent to another user's login name. Passing the $user parameter to the function, where $user is the other user, is effectively an override of this limitation.
  • Filter 'wpmu_validate_blog_signup' if you want to modify the way that WordPress validates new site signups.

Change Log

Since: MU

Source File

wpmu_validate_blog_signup() is located in wp-includes/ms-functions.php

Related

wpmu_signup_blog(), wpmu_signup_blog_notification()

See also index of Function Reference and index of Template Tags.