wp_initialize_site WordPress Action Hook
The wp_initialize_site hook is called after a site has been created or updated. It is used to do any necessary initialization tasks for the site.
do_action( 'wp_initialize_site', WP_Site $new_site , array $args ) #
Fires when a site’s initialization routine should be executed.
Parameters
- $new_site
(WP_Site)New site object.
- $args
(array)Arguments for the initialization.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |