wpmu_activate_blog WordPress Action Hook

The wpmu_activate_blog hook is called when a new blog is created in a WordPress Multisite installation. It allows you to take action when a new blog is created, such as sending an email to the new blog owner or setting up default settings for the new blog.

do_action( 'wpmu_activate_blog', int $blog_id, int $user_id, string $password, string $signup_title, array $meta ) #

Fires immediately after a site is activated.


Parameters

$blog_id

(int)Blog ID.

$user_id

(int)User ID.

$password

(string)User password.

$signup_title

(string)Site title.

$meta

(array)Signup meta data. By default, contains the requested privacy setting and lang_id.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

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.

Show More
Show More