wp_delete_site WordPress Action Hook
The wp_delete_site hook is triggered when a site is deleted from the WordPress network. It allows you to take action when a site is deleted, such as cleaning up data or notifying an administrator.
do_action( 'wp_delete_site', WP_Site $old_site ) #
Fires once a site has been deleted from the database.
Parameters
- $old_site
(WP_Site)Deleted site object.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |