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.
Source
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |