On this page
apply_filters( 'wp_initialize_site_args', array $args, WP_Site $site, WP_Network $network )
Filters the arguments for initializing a site.
Parameters
$argsarray-
Arguments to modify the initialization behavior.
$siteWP_Site-
Site that is being initialized.
$networkWP_Network-
Network that the site belongs to.
Source
File: wp-includes/ms-site.php. View all references
$args = apply_filters( 'wp_initialize_site_args', $args, $site, $network );
Related
Used By
| Used By | Description |
|---|---|
| wp_initialize_site() wp-includes/ms-site.php | Runs the initialization routine for a given site. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_initialize_site_args