Title: before_populate_network
Published: February 24, 2026

---

# do_action( ‘before_populate_network’, int $network_id, string $domain, string $email, string $site_name, string $path, bool $subdomain_install )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#wp--skip-link--target)

Fires before a network is populated.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#parameters)󠁿

 `$network_id`int

ID of network to populate.

`$domain`string

The domain name for the network.

`$email`string

Email address for the network administrator.

`$site_name`string

The name of the network.

`$path`string

The path to append to the network’s domain name.

`$subdomain_install`bool

Whether the network is a subdomain installation or a subdirectory installation.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#source)󠁿

    ```php
    do_action( 'before_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/schema.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/schema.php#L1022)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/schema.php#L1022-L1022)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#related)󠁿

| Used by | Description | 
| [populate_network()](https://developer.wordpress.org/reference/functions/populate_network/)`wp-admin/includes/schema.php` |

Populate network settings.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/before_populate_network/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.9.0](https://developer.wordpress.org/reference/since/6.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fbefore_populate_network%2F)
before being able to contribute a note or feedback.