wpmu_new_blog

Advertisement

Deprecated Deprecated

This hook has been deprecated. Use ‘wp_insert_site’ instead.

Summery Summery

Fires immediately after a new site is created.

Syntax Syntax

do_action_deprecated( 'wpmu_new_blog', int $site_id, int $user_id, string $domain, string $path, int $network_id, array $meta )

Parameters Parameters

$site_id

Site ID.

$user_id

User ID.

$domain

Site domain.

$path

Site path.

$network_id

Network ID. Only relevant on multi-network installations.

$meta

Meta data. Used to set initial site options.

Source Source

File: wp-includes/ms-site.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Use 'wp_insert_site' instead.
MU (3.0.0) Introduced.

Advertisement

Leave a Reply