signup_blog_init WordPress Filter Hook

The signup_blog_init hook is used to initiate a new blog signup. It is fired before the new site is created and allows you to modify the default settings for the new site. This hook is also used to check if the site already exists and if it does, redirect to the signup form.

apply_filters( 'signup_blog_init', array $signup_blog_defaults ) #

Filters the default site creation variables for the site sign-up form.


Parameters

$signup_blog_defaults

(array)An array of default site creation variables.

  • 'user_name'
    (string) The user username.
  • 'user_email'
    (string) The user email address.
  • 'blogname'
    (string) The blogname.
  • 'blog_title'
    (string) The title of the site.
  • 'errors'
    (WP_Error) A WP_Error object with possible errors relevant to new site creation variables.


Top ↑

Source

File: wp-signup.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.