wp_uninitialize_site WordPress Action Hook
The wp_uninitialize_site hook is called when a site is uninitialized. This hook can be used to perform cleanup tasks such as deleting data and files associated with the site.
do_action( 'wp_uninitialize_site', WP_Site $old_site ) #
Fires when a site’s uninitialization routine should be executed.
Parameters
- $old_site
(WP_Site)Deleted site object.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |