diff --git a/src/helper/class-ee-site.php b/src/helper/class-ee-site.php index 95e32de6..fc52b785 100644 --- a/src/helper/class-ee-site.php +++ b/src/helper/class-ee-site.php @@ -223,6 +223,13 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = [] } } + /** + * Execute before site db data cleanup and after site services cleanup. + * Note: This can be use to cleanup site data added by any package command. + * + * @param string $site_url Url of site which data is cleanup. + */ + \EE::do_hook( 'site_cleanup', $site_url ); if ( $level > 4 ) { if ( $this->site_data['site_ssl'] ) {